<br><br><div class="gmail_quote">On Mon, Nov 29, 2010 at 5:00 PM, Tom H <span dir="ltr"><<a href="mailto:tomh0665@gmail.com">tomh0665@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Mon, Nov 29, 2010 at 4:55 AM, Kaushal Shriyan<br>
<div><div></div><div class="h5"><<a href="mailto:kaushalshriyan@gmail.com">kaushalshriyan@gmail.com</a>> wrote:<br>
> On Mon, Nov 29, 2010 at 3:09 PM, Tom H <<a href="mailto:tomh0665@gmail.com">tomh0665@gmail.com</a>> wrote:<br>
>> On Mon, Nov 29, 2010 at 4:16 AM, Kaushal Shriyan<br>
>> <<a href="mailto:kaushalshriyan@gmail.com">kaushalshriyan@gmail.com</a>> wrote:<br>
>> > On Mon, Nov 29, 2010 at 1:16 PM, Tom H <<a href="mailto:tomh0665@gmail.com">tomh0665@gmail.com</a>> wrote:<br>
>> >><br>
>> >> What's the output of<br>
>> >> grep hosts /etc/nsswitch.conf<br>
>> >> dig +trace office_server<br>
>> >> dig +trace +nosearch office_server<br>
>> ><br>
>> > kaushal@kaushal-laptop:~$ grep hosts /etc/nsswitch.conf<br>
>> > hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4<br>
>> ><br>
>> > kaushal@kaushal-laptop:~$ dig +trace 172.26.0.1<br>
>> > ;; connection timed out; no servers could be reached<br>
>> ><br>
>> > kaushal@kaushal-laptop:~$ dig +trace +nosearch 172.26.0.1<br>
>> > ;; connection timed out; no servers could be reached<br>
>> ><br>
>> > kaushal@kaushal-laptop:~$ping 172.26.0.1<br>
>> > 64 bytes from <a href="http://172.26.0.1" target="_blank">172.26.0.1</a>: icmp_seq=1 ttl=64 time=2.96 ms<br>
>> ><br>
>> > kaushal@kaushal-laptop:~$netstat -r | grep -w default<br>
>> > default 172.26.0.1 0.0.0.0 UG 0 0 0<br>
>> > eth0<br>
>> ><br>
>> > kaushal@kaushal-laptop:~$host <a href="http://off.example.com" target="_blank">off.example.com</a><br>
>> > <a href="http://off.example.com" target="_blank">off.example.com</a> has address publicIP<br>
>> ><br>
>> > I dont know why <a href="http://off.example.com" target="_blank">off.example.com</a> resolves to my External Outgoing Public<br>
>> > IP and not Internal LAN Gateway IP.<br>
>><br>
>> I've never used "host" so I can't comment on the above.<br>
>><br>
>> If you supply dig with an ip address, you have to pass the "-x" option.<br>
>><br>
>> What's the output of<br>
>> $ dig +trace <a href="http://off.example.com" target="_blank">off.example.com</a><br>
>> $ dig +trace -x 172.26.0.1<br>
><br>
</div></div><div class="im">> kaushal@kaushal-laptop:~$ dig +trace <a href="http://off.example.com" target="_blank">off.example.com</a><br>
</div><div class="im">> ;; connection timed out; no servers could be reached<br>
><br>
> kaushal@kaushal-laptop:~$ dig +trace -x 172.26.0.1<br>
</div><div class="im">> ;; connection timed out; no servers could be reached<br>
<br>
</div>I've just looked at the host man page. It queries the dns servers<br>
listed in "resolv.conf" so it shouldn't produce a result that is<br>
different from dig.<br>
<div class="im"><br>
What's the output of<br>
</div>host -v <a href="http://off.example.com" target="_blank">off.example.com</a><br>
<div><div></div><div class="h5"><br></div></div></blockquote><div><br>Hi Tom,<br><br>kaushal@kaushal-laptop:~$ host -v <a href="http://off.example.com">off.example.com</a><br>Trying "<a href="http://off.example.com">off.example.com</a>"<br>
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62150<br>;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0<br><br>;; QUESTION SECTION:<br>;<a href="http://off.example.com">off.example.com</a>. IN A<br>
<br>;; ANSWER SECTION:<br><a href="http://off.example.com">off.example.com</a>. 86400 IN A PUBLICIP<br><br>Received 48 bytes from 10.20.0.1#53 in 303 ms<br>Trying "<a href="http://off.example.com">off.example.com</a>"<br>
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58459<br>;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0<br><br>;; QUESTION SECTION:<br>;<a href="http://off.example.com">off.example.com</a>. IN AAAA<br>
<br>Received 32 bytes from 10.20.0.1#53 in 287 ms<br>Trying "<a href="http://off.example.com">off.example.com</a>"<br>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18506<br>;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0<br>
<br>;; QUESTION SECTION:<br>;<a href="http://off.example.com">off.example.com</a>. IN MX<br><br>Received 32 bytes from 10.20.0.1#53 in 286 ms<br>kaushal@kaushal-laptop:~$ cat /etc/resolv.conf <br># Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)<br>
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN<br>nameserver 10.20.0.1<br>nameserver 10.20.0.1<br>search <a href="http://dc1.webaroo.com">dc1.webaroo.com</a> <a href="http://off.example.com">off.example.com</a><br>
kaushal@kaushal-laptop:~$ <br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="h5">
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</div></div></blockquote></div><br>