echo "nameserver $(/sbin/route | awk '/^default/ { print $2 }')" >> /etc/resolv.conf
pwatk wrote:How difficult would it be to enable DNS name resolution for initextra so you can browse the internet easily once the desktop is up?
I know the problem can be resolved by manually editing resolv.conf or disconnecting and reconnecting wicd (which also temporarily breaks the union filesystem) but there's got to be an easier way.
Maybe a simple script could do it if the dhcp client doesn't:
- Code: Select all
echo "nameserver $(/sbin/route | awk '/^default/ { print $2 }')" >> /etc/resolv.conf
pwatk wrote:Every DHCP client I've encountered has had the ability to update resolv.conf based on options in DHCP server
Shador wrote:The dhcp protocol provides means to send dhcp client machines the dns client to use
pwatk wrote:From what I gather there is no support for name resolution at all during the boot process so I don't think it is possible to copy over the resolv.conf.
Shador wrote:pwatk wrote:Every DHCP client I've encountered has had the ability to update resolv.conf based on options in DHCP server
That's exactly my point:Shador wrote:The dhcp protocol provides means to send dhcp client machines the dns client to use
Shador wrote:pwatk wrote:From what I gather there is no support for name resolution at all during the boot process so I don't think it is possible to copy over the resolv.conf.
I just looked at init-extra script and it calls udhcp (a dhcp client), which probably creates a resolv.conf. In any case the info can probably also be extracted through the netinfo script called by udhcp in there.
Known bugs/limitations:
...
- no DNS resolution supported
Shador wrote:Anyway I can't try out/change anything as I'm on holiday and only have my mobile with me. But I'm sure JRD knows what to do if you ask him and if he isn't reading this.
