1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Boot from a FreeBSD 9 CD, network configuration

Discussion in 'General' started by antolap, Apr 26, 2012.

  1. antolap

    antolap New Member

    Messages:
    27
    Likes Received:
    0
    If I boot from CD-ROM (using a freebsd9 FreeBSD 9 CD), I can go to shell. I can configure the network interface, I can set the IP address, netmask, gateway, I can ping the local machine, internet machine (by IP address), but I don't understand how to set the DNS nameserver. I can't modify /etc/resolv.conff because it's read-only.

    Is there a way to set DNS without having to mount a local partition?

    Thanks.
     
  2. da1

    da1 Member

    Messages:
    756
    Likes Received:
    0
    If you do a ls -la /etc/resolv.conf you will notice that /etc/resolv.conf is actually a link to /tmp/bsdinstall_etc/resolv.conf. So, to get your DNS up and running you need to populate the /tmp/bsdinstall_etc/resolv.conf file.

    PS: the /tmp/bsdinstall_etc dir doesn't exist by default. You should create it ;)
     
  3. antolap

    antolap New Member

    Messages:
    27
    Likes Received:
    0
    Ok, it works!
    Many thanks.