<p dir="ltr"><br>
On Oct 26, 2014 8:56 AM, "Dotan Cohen" <<a href="mailto:dotancohen@gmail.com">dotancohen@gmail.com</a>> wrote:<br>
><br>
> Yes, I just checked on one of the Windows machines here and I see that<br>
> it is using 10.0.0.138 for DNS, so I see that it is safe to use. The<br>
> lines should just simple be this?<br>
><br>
> auto eth0<br>
>     iface eth0 inet static<br>
>     address 10.0.0.7<br>
>     netmask 255.255.255.0<br>
>     gateway 10.0.0.138<br>
>     dns-nameservers 10.0.0.138<br>
>     dns-search 10.0.0.138<br>
></p>
<p dir="ltr">Actually DNS search would be your domain that would get appended to host names that aren't fully qualified.</p>
<p dir="ltr">So if you put home.local in your search and then you try to ping a machine named files, it'll try files and then files.home.local</p>
<p dir="ltr">So in search put your local domain name, or remove it if you don't have one.</p>
<p dir="ltr">Glad I could actually help,<br>
Doug<br>
> Thank you Douglas!<br>
><br>
><br>
> On Sun, Oct 26, 2014 at 2:54 PM, Douglas Stanley<br>
> <<a href="mailto:douglas.m.stanley@gmail.com">douglas.m.stanley@gmail.com</a>> wrote:<br>
> ><br>
> > On Oct 26, 2014 8:49 AM, "Dotan Cohen" <<a href="mailto:dotancohen@gmail.com">dotancohen@gmail.com</a>> wrote:<br>
> >><br>
> >> On Sun, Oct 26, 2014 at 2:41 PM, Douglas Stanley<br>
> >> <<a href="mailto:douglas.m.stanley@gmail.com">douglas.m.stanley@gmail.com</a>> wrote:<br>
> >> > Don't forget to add the options:<br>
> >> ><br>
> >> > dns-nameservers<br>
> >> > dns-search<br>
> >> ><br>
> >> > Otherwise you may not be able to resolve DNS.<br>
> >> ><br>
> >> > Doug<br>
> >><br>
> >><br>
> >> Thank you! For some reason I seem to be using a loopback, but I don't<br>
> >> see where the configuration outside is handled:<br>
> >><br>
> >> $ cat /etc/resolv.conf<br>
> >> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by<br>
> >> resolvconf(8)<br>
> >> #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN<br>
> >> nameserver 127.0.1.1<br>
> >> search Home<br>
> >><br>
> >> $ dig<a href="http://gmail.com">gmail.com</a><br>
> >><br>
> >> ; <<>> DiG 9.9.5-3-Ubuntu <<>><a href="http://gmail.com">gmail.com</a><br>
> >> ;; global options: +cmd<br>
> >> ;; Got answer:<br>
> >> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22197<br>
> >> ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0<br>
> >><br>
> >> ;; QUESTION SECTION:<br>
> >> ;<a href="http://gmail.com">gmail.com</a>.                     IN      A<br>
> >><br>
> >> ;; ANSWER SECTION:<br>
> >><a href="http://gmail.com">gmail.com</a>.              181     IN      A       173.194.113.85<br>
> >><a href="http://gmail.com">gmail.com</a>.              181     IN      A       173.194.113.86<br>
> >><br>
> >> ;; Query time: 62 msec<br>
> >> ;; SERVER: 127.0.1.1#53(127.0.1.1)<br>
> >> ;; WHEN: Sun Oct 26 14:45:49 IST 2014<br>
> >> ;; MSG SIZE  rcvd: 59<br>
> >><br>
> >><br>
> >> Perhaps I am running a DNS server locally? I don't remember doing that<br>
> >> but it is possible that I just forgot. I do see that I'm listening on<br>
> >> port 53:<br>
> >><br>
> >> $ netstat -ntulp | grep 53<br>
> >> tcp        0      0<a href="http://127.0.1.1:53">127.0.1.1:53</a>            0.0.0.0:*<br>
> >> LISTEN      -<br>
> >> udp        0      0<a href="http://127.0.1.1:53">127.0.1.1:53</a>            0.0.0.0:*<br>
> >>          -<br>
> >> udp        0      0<a href="http://0.0.0.0:5353">0.0.0.0:5353</a>            0.0.0.0:*<br>
> >>          -<br>
> >> udp6       0      0 :::5353                 :::*<br>
> >>          -<br>
> >><br>
> >><br>
> >><br>
> >> How should I go about diagnosing this? I would have assumed that my<br>
> >> DNS would point to the same address as the default gateway as the<br>
> >> router does do DNS.<br>
> >><br>
> > Yes, so the default uses a local DNS server and puts your upstream DNS<br>
> > server in the local DNS servers config. Does that make sense? I don't<br>
> > remember where you can find what actual DNS server you got from dhcp, but if<br>
> > you know the gateway does DNS resolving, just use that IP.<br>
> ><br>
> > Doug<br>
> ><br>
> >> --<br>
> >> Dotan Cohen<br>
> >><br>
> >><a href="http://gibberish.co.il">http://gibberish.co.il</a><br>
> >><a href="http://what-is-what.com">http://what-is-what.com</a><br>
><br>
><br>
><br>
> --<br>
> Dotan Cohen<br>
><br>
><a href="http://gibberish.co.il">http://gibberish.co.il</a><br>
><a href="http://what-is-what.com">http://what-is-what.com</a></p>