Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
etc/conf.d/net and other network problems [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
the2k
n00b
n00b


Joined: 19 Dec 2005
Posts: 34

PostPosted: Wed Nov 15, 2006 8:53 pm    Post subject: etc/conf.d/net and other network problems [solved] Reply with quote

Hi there,

firstly apologies if i'm missing something completely obvious, i usually do, but i have spent a while on this and i'm getting pretty stuck.

my first problem is that when i define my dns domain name in /etc/conf.d/net it overwrites resolv.conf

/etc/conf.d/net looks like this
Code:

config_eth0=( "10.0.0.4 netmask 255.255.255.0 brd 10.0.0.255" )
routes_eth0=( "default gw 10.0.0.2" )

dns_domain_lo="melbourne.org"
nis_domain_lo="melbourne57"


this then makes resolv.conf look like this

Code:

# generated by net-scripts for interface lo
domain melbourne.org


which then means i can't access the gateway so no internet access.

So basically what i'm after is a way to define the dns domain names without overwriting resolv, or get the default gateway to work another way?

thanks for any help that anyone can offer
Mike


Last edited by the2k on Fri Nov 17, 2006 7:57 pm; edited 2 times in total
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Wed Nov 15, 2006 9:05 pm    Post subject: Reply with quote

You need to add
Code:
dns_servers_eth0="192.168.0.2 192.168.0.3"
changing your dns_domain_lo and nis_domain_lo to _eth0. These example servers (from /etc/conf.d/net.example) will have to be changed, of course.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
the2k
n00b
n00b


Joined: 19 Dec 2005
Posts: 34

PostPosted: Wed Nov 15, 2006 9:29 pm    Post subject: Reply with quote

thanks for that,

thats got the internet working on this machine again so i can now copy and paste files :)

so now /etc/conf.d/net looks like this
Code:

config_eth0=( "10.0.0.4 netmask 255.255.255.0 brd 10.0.0.255" )
routes_eth0=( "default gw 10.0.0.2" )

dns_domain_lo="melbourne.org"
dns_servers_eth0="10.0.0.2"
nis_domain_lo="melbourne57"


and now resolv.conf looks like this
Code:
# Generated by net-scripts for interface eth0
nameserver 10.0.0.2


am i not supposed to have the domain melbourne.org mentioned in resolv.conf for me to be part of that domain?

sorry to be fussy about this but i'm trying to learn NIS and i'm going to be using this machine as a client whilst i "try" to set it up!

thanks
Mike
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Thu Nov 16, 2006 11:42 am    Post subject: Reply with quote

the2k wrote:
so now /etc/conf.d/net looks like this
Code:

config_eth0=( "10.0.0.4 netmask 255.255.255.0 brd 10.0.0.255" )
routes_eth0=( "default gw 10.0.0.2" )

dns_domain_lo="melbourne.org"
dns_servers_eth0="10.0.0.2"
nis_domain_lo="melbourne57"
and now resolv.conf looks like this
Code:
# Generated by net-scripts for interface eth0
nameserver 10.0.0.2
am i not supposed to have the domain melbourne.org mentioned in resolv.conf for me to be part of that domain?
the last part of /etc/conf.d/net should be
Code:
dns_domain_eth0="melbourne.org"
dns_servers_eth0="10.0.0.2"
nis_domain_eth0="melbourne57"
that is, "dns_domain_lo" -> "dns_domain_eth0" and "nis_domain_lo" -> "nis_domain_eth0"

the2k wrote:
sorry to be fussy about this but i'm trying to learn NIS and i'm going to be using this machine as a client whilst i "try" to set it up!
"fussy" gets things done right!
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
the2k
n00b
n00b


Joined: 19 Dec 2005
Posts: 34

PostPosted: Fri Nov 17, 2006 7:57 pm    Post subject: Reply with quote

brilliant

thankyou very much for that, it seems to work a treat now :)

sorry for my late reply i was working away yesterday unfortunately. now i can spend tomorrow afternoon and Sunday trying to get nis to work :)

thanks again
Mike
Back to top
View user's profile Send private message
asynchronous13
n00b
n00b


Joined: 18 Nov 2006
Posts: 3

PostPosted: Sat Nov 18, 2006 12:42 am    Post subject: Reply with quote

Thanks, I was just having this exact same issue, I just needed to add the dns_servers_eth0 line to my /etc/conf.d/net

Regarding dns_domain_lo vs dns_domain_eth0 -- the gentoo x-86 handbook instructs to use dns_domain_lo
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=8#doc_chap2

should the handbook be updated?
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Sat Nov 18, 2006 1:27 am    Post subject: Reply with quote

asynchronous13 wrote:
Thanks, I was just having this exact same issue, I just needed to add the dns_servers_eth0 line to my /etc/conf.d/net

Regarding dns_domain_lo vs dns_domain_eth0 -- the gentoo x-86 handbook instructs to use dns_domain_lo
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=8#doc_chap2

should the handbook be updated?

No. There's a reason why the handbook has so many references to "go read conf.d/net.example" -- because it's the place for this information. If you're doing advanced networking configuration, then you should be using the examples in net.example; they give more detail than we can provide in the handbook.
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