Re[2]: newbie dns mess w/ nic

2003-11-17 Thread Steve Bertrand
 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

 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re[2]: newbie dns mess w/ nic

2003-11-13 Thread Dmitry Kochetov
Greetings,

Thursday, November 13, 2003, 12:21:00 AM, you wrote:
ML At 03:32 PM 11/12/2003, Steve Bertrand wrote:

Add the following to your /etc/rc.conf file:

default_router=192.168.0.1


Ahh, but the line in rc.conf should be like that:

defaultrouter=192.158.0.1

Wrong syntax, did it myself a couple of times :)

-- 
Best regards, Dmitry Kochetov (ALG12-RIPN, ALGR-RIPE)
mailto:[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re[2]: newbie dns mess w/ nic

2003-11-13 Thread Marty Landman
At 10:13 AM 11/13/2003, Dmitry Kochetov wrote:

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

route add default 192.168.0.7 in an exec on /usr/local/etc/rc.d.

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

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?

**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

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
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]