View previous topic :: View next topic |
Author |
Message |
the2k n00b

Joined: 19 Dec 2005 Posts: 34
|
Posted: Wed Nov 15, 2006 8:53 pm Post subject: etc/conf.d/net and other network problems [solved] |
|
|
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 |
|
 |
wynn Advocate


Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Wed Nov 15, 2006 9:05 pm Post subject: |
|
|
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 |
|
 |
the2k n00b

Joined: 19 Dec 2005 Posts: 34
|
Posted: Wed Nov 15, 2006 9:29 pm Post subject: |
|
|
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 |
|
 |
wynn Advocate


Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Thu Nov 16, 2006 11:42 am Post subject: |
|
|
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 |
|
 |
the2k n00b

Joined: 19 Dec 2005 Posts: 34
|
Posted: Fri Nov 17, 2006 7:57 pm Post subject: |
|
|
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 |
|
 |
asynchronous13 n00b

Joined: 18 Nov 2006 Posts: 3
|
|
Back to top |
|
 |
96140 Retired Dev

Joined: 23 Jan 2005 Posts: 1324
|
Posted: Sat Nov 18, 2006 1:27 am Post subject: |
|
|
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 |
|
 |
|