Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Plugging in Zaurus (usb0) wipes out resolv.conf [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ajaygautam
Apprentice
Apprentice


Joined: 23 Jan 2003
Posts: 205
Location: London Below

PostPosted: Fri Mar 02, 2007 7:54 pm    Post subject: Plugging in Zaurus (usb0) wipes out resolv.conf [SOLVED] Reply with quote

Code:
# cat /etc/conf.d/net
dns_domain="kdx.int"
nis_domain="kdx"
nis_servers="viking.kdx.int ares.kdx.int"

# For Zaurus USBD network
config_usb0=( "192.168.129.1 netmask 255.255.255.0" )


Wired network is eth1 (no eth0). When I boot, I get a decent resolv.conf with correct domain and nameserver entries.

When I plugin my zaurus, which activates usb0, the resolv.conf gets wiped to:
Code:
# cat /etc/resolv.conf
# Generated by net-scripts for interface usb0
domain kdx.int


no nameserver entries, so internet stops! I manually copy a working resolv.conf and things get back to working!.

Any idea whats going on, and how can I fix it?

Ajay


Last edited by ajaygautam on Wed Mar 07, 2007 6:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Mar 02, 2007 8:31 pm    Post subject: Reply with quote

You should immediately suspect your dns_domain entry, since it's identical to the value you don't want in resolv.conf :wink:
Back to top
View user's profile Send private message
ajaygautam
Apprentice
Apprentice


Joined: 23 Jan 2003
Posts: 205
Location: London Below

PostPosted: Fri Mar 02, 2007 9:03 pm    Post subject: Reply with quote

PaulBredbury wrote:
You should immediately suspect your dns_domain entry, since it's identical to the value you don't want in resolv.conf :wink:


well, dns_domain is fine. I am more worried about loosing the "nameserver" entries.

Ajay
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Mar 03, 2007 4:32 pm    Post subject: Reply with quote

Specify your name servers!

dns_servers="1.2.3.4"

OR

don't specify the domain name.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
ajaygautam
Apprentice
Apprentice


Joined: 23 Jan 2003
Posts: 205
Location: London Below

PostPosted: Mon Mar 05, 2007 4:22 am    Post subject: Reply with quote

UberLord wrote:
Specify your name servers!

dns_servers="1.2.3.4"

OR

don't specify the domain name.


I will try this out in a few days, and will post results.

Thanks
Ajay
Back to top
View user's profile Send private message
ajaygautam
Apprentice
Apprentice


Joined: 23 Jan 2003
Posts: 205
Location: London Below

PostPosted: Wed Mar 07, 2007 6:18 pm    Post subject: Reply with quote

UberLord wrote:
Specify your name servers!

dns_servers="1.2.3.4"

OR

don't specify the domain name.


It worked. I removed the dns_domain entry from conf.d/net, and its working now.

Thanks

Ajay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum