[Voyage-linux] Correct way to get persistant nameserver info across reboots

Jay Nugent (spam-protected)
Tue Dec 13 03:13:07 HKT 2011


Greetings,

On Mon, 12 Dec 2011, ka1ifq, Mike wrote:

> On 12/12/2011 11:04 AM, ka1ifq wrote:
>>
>>  This is something that just popped up on me. I am using Voyage 0.7.0. Up
>>  till now the system has been used for incoming connections, now I wish to
>>  do some outgoing things, but I get errors when trying to connect out, even
>>  doing an apt-get update.
>>
>>   Is there an official way to accomplish this?
>>
>>   Still in the learning curve.
>>
>>  Thanks, Mike.
> This is what is in my 'interfaces' file for Eth0
>
> auto eth0
> iface eth0 inet static
>         address 10.128.128.222
>         netmask 255.255.255.0
> #       network 10.128.128.0
>        gateway 10.128.128.1
> #       dns-nameserver = 68.94.156.1
>         dns-nameserver = 68.94.157.1
>
> I do not get name resolution, this should work from what I have read.

    Take a look at /etc/resolv.conf and confirm that the nameservers you 
listed above in your 'interfaces' file actually got written into 
'resolv.conf' during boot up.  If they did - great!  If they did not, then 
we need to determine why that failed.

    If they are in /etc/resolv.conf, confirm that you can PING the IP 
address of one or both of those nameservers.   If you cannot reach the 
namesever, it stands to reason your won't get name resolution.

    If the nameserver *are* reachable, verify that that you can reach them 
on TCP port 53 (DNS port).   You can do this with the DIG command.

    dig @68.94.156.1  nuge.com

    That *should* return an ANSWER of 216.144.208.68.


    I am *assuming* that since you are configuring your box for an RFC1918 
address (10.128.128.222) that this box sits behind a NAT firewall? 
Correct me if I am wrong.   I will also assume that other boxes on that 
LAN (behind that NAT) *are indeed* able to resolve domain names and reach 
the public Internet?

    Always remember to "Think like a Packet, and in BOTH directions!"

    Hope this helps in your troubleshooting,
       --- Jay Nugent

         () ascii ribbon campaign in
         /\ support of plain text e-mail

"No free man shall ever be debarred the use of arms. The strongest
reason for the people to retain the right to keep and bear arms is, as a
last resort, to protect themselves against tyranny in government"--
Thomas Jefferson, 1 Thomas Jefferson Papers, 334
+------------------------------------------------------------------------+
| Jay Nugent   jjn at nuge.com    (734)484-5105    (734)649-0850/Cell       |
|   Nugent Telecommunications  [www.nuge.com]                            |
|   Internet Consulting/Linux SysAdmin/Engineering & Design/ISP Reseller |
| ISP Monitoring [www.ispmonitor.org] ISP & Modem Performance Monitoring |
| Web-Pegasus    [www.webpegasus.com] Web Hosting/DNS Hosting/Shell Accts|
+------------------------------------------------------------------------+
  14:01:01 up 98 days, 20:39,  3 users,  load average: 0.00, 0.00, 0.00




More information about the Voyage-linux mailing list