{"id":711,"date":"2016-03-03T12:49:56","date_gmt":"2016-03-03T17:49:56","guid":{"rendered":"https:\/\/www.devolve.net\/blog\/?p=711"},"modified":"2016-03-03T12:49:56","modified_gmt":"2016-03-03T17:49:56","slug":"debian-dns-bogosity","status":"publish","type":"post","link":"https:\/\/www.devolve.local\/debian-dns-bogosity\/","title":{"rendered":"Debian server DNS bogosity"},"content":{"rendered":"

Note: I’m running my Raspberry Pi as a server, and NetworkManager<\/code> is not installed.<\/em><\/p>\n

I discovered that if you want to manually assign search<\/code> and nameserver<\/code> entries in your \/etc\/resolv.conf file, you can’t just add the relevant entries to static entry in \/etc\/network\/interfaces:<\/p>\n

auto eth0\r\niface eth0 inet static\r\n  address 192.168.1.123\r\n  netmask 255.255.255.0\r\n  gateway 192.168.1.1\r\n  dns-search devolve.net\r\n  dns-nameservers 8.8.4.4 8.8.8.8<\/pre>\n

For some unknown reason, the resolvconf utility will still attempt to query an upstream DHCP server to get additional name service data. I don’t know why it works this way, I believe it should be hands-off if you’ve specified static<\/code> in your interfaces file. I finally found that dhcpcd was called to get the info, and added the following line to \/etc\/dhcpcd.conf to disable actions relating to eth0:<\/p>\n

denyinterfaces lo* eth0<\/pre>\n

I suppose if I wanted additional interfaces to work properly using dhcp, I’d have to get rid of all this and configure each interface manually via NetworkManager<\/code> or wicd<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"

Note: I’m running my Raspberry Pi as a server, and NetworkManager is not installed. I discovered that if you want to manually assign search and nameserver entries in your \/etc\/resolv.conf file, you can’t just add the relevant entries to static entry in \/etc\/network\/interfaces: auto eth0 iface eth0 inet static address 192.168.1.123 netmask 255.255.255.0 gateway 192.168.1.1 […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[34,43,16,17,22,26],"_links":{"self":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/711"}],"collection":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/comments?post=711"}],"version-history":[{"count":1,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/711\/revisions"}],"predecessor-version":[{"id":712,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/711\/revisions\/712"}],"wp:attachment":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/media?parent=711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/categories?post=711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/tags?post=711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}