Static IP address without removing DHCP

Dotan Cohen dotancohen at gmail.com
Sun Oct 26 12:49:52 UTC 2014


On Sun, Oct 26, 2014 at 2:41 PM, Douglas Stanley
<douglas.m.stanley at gmail.com> wrote:
> Don't forget to add the options:
>
> dns-nameservers
> dns-search
>
> Otherwise you may not be able to resolve DNS.
>
> Doug


Thank you! For some reason I seem to be using a loopback, but I don't
see where the configuration outside is handled:

$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search Home

$ dig gmail.com

; <<>> DiG 9.9.5-3-Ubuntu <<>> gmail.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22197
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;gmail.com.                     IN      A

;; ANSWER SECTION:
gmail.com.              181     IN      A       173.194.113.85
gmail.com.              181     IN      A       173.194.113.86

;; Query time: 62 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Sun Oct 26 14:45:49 IST 2014
;; MSG SIZE  rcvd: 59


Perhaps I am running a DNS server locally? I don't remember doing that
but it is possible that I just forgot. I do see that I'm listening on
port 53:

$ netstat -ntulp | grep 53
tcp        0      0 127.0.1.1:53            0.0.0.0:*
LISTEN      -
udp        0      0 127.0.1.1:53            0.0.0.0:*
         -
udp        0      0 0.0.0.0:5353            0.0.0.0:*
         -
udp6       0      0 :::5353                 :::*
         -



How should I go about diagnosing this? I would have assumed that my
DNS would point to the same address as the default gateway as the
router does do DNS.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com




More information about the ubuntu-server mailing list