[sf-lug] resolver problem

Alex Kleider akleider at sonic.net
Tue Apr 5 18:43:43 PDT 2016


On 2016-04-05 13:21, Rick Moen wrote:
> Quoting Alex Kleider (akleider at sonic.net):
> 
>> I've got a vexing little problem with which perhaps someone on this
>> list might be able to help.
> 
> This is a longshot, but perhaps some weird IPV6 failure?  Try testing
> again using ping6 and not just ping.
> 
>> dig github.com @127.0.0.1 +short
> 
> Um, I'm a little lost.  You're saying localhost is a nameserver?

No, it isn't- Daniel set me straight on why that part doesn't work.
ping github.com does work
but git push doesn't (although it used to.)
Chromium can resolve URLs but Firefox can not!
That's what I don't understand.



git push
fatal: unable to access 'https://github.com/alexKleider/debk.git/':
Could not resolve host: github.com

ping github.com   # succeeds; (although last quad varies)
PING github.com (192.30.252.130) 56(84) bytes of data.
64 bytes from github.com (192.30.252.130): icmp_seq=1 ttl=53 time=86.9
ms
64 bytes from github.com (192.30.252.130): icmp_seq=2 ttl=53 time=87.7
ms
64 bytes from github.com (192.30.252.130): icmp_seq=3 ttl=53 time=87.2
ms
64 bytes from github.com (192.30.252.130): icmp_seq=4 ttl=53 time=87.6
ms
64 bytes from github.com (192.30.252.130): icmp_seq=6 ttl=53 time=87.0
ms
64 bytes from github.com (192.30.252.130): icmp_seq=7 ttl=53 time=87.5
ms
^C
--- github.com ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 5999ms
rtt min/avg/max/mdev = 86.967/87.428/87.797/0.391 ms

dig github.com @10.0.0.2 +short   # My router
192.30.252.131

content of /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.0.0.2
search sonic.net

I'm able to get around the problem by adding the line
192.30.252.131 github.com
to my /etc/hosts file

But I'd sure like to know the root of the problem and fix it if
possible.






More information about the sf-lug mailing list