Me

  • 11 Posts
  • 189 Comments
Joined 1 year ago
cake
Cake day: April 29th, 2023

help-circle


  • Shimitar@feddit.itOPtoSelfhosted@lemmy.worldDNS issues
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 days ago

    I want to go directly to the source, i mean, if i want to resolve, for example www.polito.it, i want to ask “it”, then “polito.it”… This is what Unbound should be doing.

    Instead, i can resolve it:

    server /etc # dig it @127.0.0.1
    
    ; <<>> DiG 9.16.48 <<>> it @127.0.0.1
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59860
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 1232
    ;; QUESTION SECTION:
    ;it.                            IN      A
    
    ;; AUTHORITY SECTION:
    it.                     3194    IN      SOA     dns.nic.it. hostmaster.nic.it. 2024062114 10800 900 604800 3600
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Fri Jun 21 14:50:06 CEST 2024
    ;; MSG SIZE  rcvd: 86
    

    Instead i cannot resolve polito.it:

    server /etc # dig polito.it @127.0.0.1
    
    ; <<>> DiG 9.16.48 <<>> polito.it @127.0.0.1
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 60832
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 1232
    ;; QUESTION SECTION:
    ;polito.it.                     IN      A
    
    ;; Query time: 1180 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Fri Jun 21 14:50:40 CEST 2024
    ;; MSG SIZE  rcvd: 38
    

    Nothing appears in the logs. It resolve fine using 8.8.8.8 as upstream DNS.







  • I I agree with everybody else saying that the email server should not be self-hosted. But I have a specific exception to this rule, which I was keen to try, but I never did this or take this with a pinch of salt.

    I do self-host on my services, but at the moment I keep myself hosted email on a public server, not on my home server.

    Since I am using a tunnel to access my services from outside, my home server is actually using my public server ip. moving my email self-hosting to my home server would not actually change the front facing IP address of that email server, and no harm would be done to my mail server.

    But is it really worth it? Probably not. Since I would still need some kind of backup email server out on the internet for the rare situations where my home server is cut from the internet due to power outage or ISP being down.

    You want full reliability for your email server. So your home connection without UPS or backup connection isn’t going to cut the cheese fully.

    So, I would suggest you don’t self-host your email on your home server. You can still self-host your email, but on a public server. Be aware, though, that is a difficult task which will require lots of effort and many months to get it done right and accepted everywhere.














  • Been running raid1 on USB for over a decade. Avoid chaeap USB stuff, get foot brand USB boxes and preferably a JBOD multi-disk enclosure, since they tend to be the best quality.

    Never had a disconnect.

    Beware to properly label your driver tough, as Linux software raid (I use that) tend to hiccup on boot if the kernel reassign USB devices after a reboot.