DNS not being populated in resolv.conf
Kaushal Shriyan
kaushalshriyan at gmail.com
Mon Nov 29 11:39:52 UTC 2010
On Mon, Nov 29, 2010 at 5:00 PM, Tom H <tomh0665 at gmail.com> wrote:
> On Mon, Nov 29, 2010 at 4:55 AM, Kaushal Shriyan
> <kaushalshriyan at gmail.com> wrote:
> > On Mon, Nov 29, 2010 at 3:09 PM, Tom H <tomh0665 at gmail.com> wrote:
> >> On Mon, Nov 29, 2010 at 4:16 AM, Kaushal Shriyan
> >> <kaushalshriyan at gmail.com> wrote:
> >> > On Mon, Nov 29, 2010 at 1:16 PM, Tom H <tomh0665 at gmail.com> wrote:
> >> >>
> >> >> What's the output of
> >> >> grep hosts /etc/nsswitch.conf
> >> >> dig +trace office_server
> >> >> dig +trace +nosearch office_server
> >> >
> >> > kaushal at kaushal-laptop:~$ grep hosts /etc/nsswitch.conf
> >> > hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
> >> >
> >> > kaushal at kaushal-laptop:~$ dig +trace 172.26.0.1
> >> > ;; connection timed out; no servers could be reached
> >> >
> >> > kaushal at kaushal-laptop:~$ dig +trace +nosearch 172.26.0.1
> >> > ;; connection timed out; no servers could be reached
> >> >
> >> > kaushal at kaushal-laptop:~$ping 172.26.0.1
> >> > 64 bytes from 172.26.0.1: icmp_seq=1 ttl=64 time=2.96 ms
> >> >
> >> > kaushal at kaushal-laptop:~$netstat -r | grep -w default
> >> > default 172.26.0.1 0.0.0.0 UG 0 0 0
> >> > eth0
> >> >
> >> > kaushal at kaushal-laptop:~$host off.example.com
> >> > off.example.com has address publicIP
> >> >
> >> > I dont know why off.example.com resolves to my External Outgoing
> Public
> >> > IP and not Internal LAN Gateway IP.
> >>
> >> I've never used "host" so I can't comment on the above.
> >>
> >> If you supply dig with an ip address, you have to pass the "-x" option.
> >>
> >> What's the output of
> >> $ dig +trace off.example.com
> >> $ dig +trace -x 172.26.0.1
> >
> > kaushal at kaushal-laptop:~$ dig +trace off.example.com
> > ;; connection timed out; no servers could be reached
> >
> > kaushal at kaushal-laptop:~$ dig +trace -x 172.26.0.1
> > ;; connection timed out; no servers could be reached
>
> I've just looked at the host man page. It queries the dns servers
> listed in "resolv.conf" so it shouldn't produce a result that is
> different from dig.
>
> What's the output of
> host -v off.example.com
>
>
Hi Tom,
kaushal at kaushal-laptop:~$ host -v off.example.com
Trying "off.example.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62150
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;off.example.com. IN A
;; ANSWER SECTION:
off.example.com. 86400 IN A PUBLICIP
Received 48 bytes from 10.20.0.1#53 in 303 ms
Trying "off.example.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58459
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;off.example.com. IN AAAA
Received 32 bytes from 10.20.0.1#53 in 287 ms
Trying "off.example.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18506
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;off.example.com. IN MX
Received 32 bytes from 10.20.0.1#53 in 286 ms
kaushal at kaushal-laptop:~$ 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 10.20.0.1
nameserver 10.20.0.1
search dc1.webaroo.com off.example.com
kaushal at kaushal-laptop:~$
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101129/fcebbf24/attachment.html>
More information about the ubuntu-users
mailing list