Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2003 11:42:20 -0500 (EST)
From:      Steve Bertrand <iaccounts@northnetworks.ca>
To:        Marty Landman <MLandman@face2interface.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re[2]: newbie dns mess w/ nic
Message-ID:  <20031117113228.B40496@svr3.northnetworks.ca>
In-Reply-To: <6.0.0.22.0.20031113105553.01b754b8@pop.face2interface.com>
References:  <6.0.0.22.0.20031112151158.0202d218@pop.face2interface.com> <20031112153139.A11115@svr3.northnetworks.ca> <6.0.0.22.0.20031112161045.05e466b0@pop.face2interface.com> <6.0.0.22.0.20031113105553.01b754b8@pop.face2interface.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> >Ahh, but the line in rc.conf should be like that:
> >
> >defaultrouter="192.158.0.1"
>
> Thanks for the follow up Dmitry. Right now I've got the typo'd line
> commented out on /etc/rc.conf and am accomplishing this with the line

I apologize for this corrupted info that I sent.

> 1. what's the difference between these two commands, e.g. are they
> interchangable in this case?

The difference is the syntax. In rc.conf, the entry is pulled into an
external program and executed as a name/value pair. When run at the
command line (or within a script), you are actually running the route
program directly, and passing it the parameters 'add', 'default' and 'IP'.

They can not be interchanged.

> 2. other than the potential for a race condition (if that's even the right
> way to put it) is there anything better about establishing dns routing in
> rc.conf than in the rc.d exec on restart?

I don't know for sure. I have with some of our client FBSD routers, added
routes from within the rc.d directory after initializing VPN tunnels,
which worked fine. I've never tested the default route from there though.

> **3.  how the heck do I give my fbsd box a name on my lan? this has been
> bugging me for a few days now

What type of name? DNS? If so, add the following to your rc.conf file,
before the IP address gets assigned:

hostname="mybox.mydomain.com"

Make an entry in DNS for this name, with it's ip, or add the IP/name pair
in the 'hosts' file on each box that needs to see it.

If you are referring to a Windows NetBIOS name, you will need to review
the following site and install the software:

http://www.samba.org

Cheers,

Steve

>
>
> Marty Landman   Face 2 Interface Inc 845-679-9387
> Sign On Required: Web membership software for your site
> Make a Website: http://face2interface.com/Home/Demo.shtml
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031117113228.B40496>