You are not logged in.

#1 2007-08-16 06:30:54

Hongkongblue
Member
From: Hong Kong
Registered: 2005-07-22
Posts: 12

Router Configuration DNS

I would like to switch to OPENDNS so i need to tell eth0 not do DNS.

[For gentooers its easy]

/etc/conf.d/
config_eth0="dhcp"
dhcp_eth0="nodns"
dns_servers_eth0="127.0.0.1 208.67.222.222 208.67.220.220"

How would i approach this the Arch Way in rc.conf (tried many different methods!!)? roll

/etc/conf.d/dhcpcd ?  [[ DHCPCD_ARGS= ...... nodns??? ]]

Gentoo Reference : http://forums.gentoo.org/viewtopic-t-57 … ight-.html

Last edited by Hongkongblue (2007-08-16 06:36:03)


Intel-D915GAV : Software Raid0 x 4 SATA : 1GB Ram : 3Ghz HT-P4

Offline

#2 2007-08-16 06:34:14

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: Router Configuration DNS

Hi Hongkongblue,
put the dns servers in /etc/resolv.conf:

nameserver x.x.x.x
nameserver x.x.x.x

Offline

#3 2007-08-16 06:37:37

Hongkongblue
Member
From: Hong Kong
Registered: 2005-07-22
Posts: 12

Re: Router Configuration DNS

luca wrote:

Hi Hongkongblue,
put the dns servers in /etc/resolv.conf:

nameserver x.x.x.x
nameserver x.x.x.x

Thanks, yes that would be fine if my router didn't keep renewing them on lease change.

Specifically, i need to stop dhcp renewing /etc/resolv.conf by telling it to stop doing dns.

Even if i stop using DHCP and assign a static address resolv.conf keeps being overwritten....

Last edited by Hongkongblue (2007-08-16 06:39:10)


Intel-D915GAV : Software Raid0 x 4 SATA : 1GB Ram : 3Ghz HT-P4

Offline

#4 2007-08-16 06:44:37

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: Router Configuration DNS

Add -R option in:

/etc/conf.d/dhcpcd

For more information man dhcpcd

Offline

#5 2007-08-16 06:49:33

Hongkongblue
Member
From: Hong Kong
Registered: 2005-07-22
Posts: 12

Re: Router Configuration DNS

luca wrote:

Add -R option in:

/etc/conf.d/dhcpcd

For more information man dhcpcd

roll Man is always a good friend ( i missed that somehow)

Many thanks luca


Intel-D915GAV : Software Raid0 x 4 SATA : 1GB Ram : 3Ghz HT-P4

Offline

Board footer

Powered by FluxBB