![]() |
|
|||||||
| FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|||
|
At work when ever I assign static IP to my system "/etc/rc.d/sendmail" script takes very long (up to 30 to 50 seconds) to execute but it hardly takes a second when system gets its IP from DHCP server.
Any input on what could be going wrong. Im able to access the network just fine in either case. |
|
||||
|
When you use DHCP, more than just the IP address is assigned. The default route is also assigned, as well as at least the primary DNS server.
If you do it manually, you have to be sure to do those things as well. Set the default route using # route add default 1.2.3.4 and add nameserver 2.3.4.5 to /etc/resolv.conf.You'll also want to make sure you have an entry in /etc/hosts that gives your IP a hostname; the same one that sendmail will be using. Unless there's already forward and reverse mappings done on the network's DNS servers, for the IP/hostname you are using. (Where 1.2.3.4 is the local IP of your router, and 2.3.4.5 is the IP of your network's primary DNS server.) |
![]() |
| Tags |
| sendmail script, static ip |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| snd_emu10k1 and static | kly | FreeBSD General | 3 | 17th September 2009 01:28 PM |
| MAC address to IP | rex | FreeBSD General | 9 | 11th November 2008 06:06 PM |
| Asking about IPv6 address | berlowin | Off-Topic | 2 | 9th July 2008 02:39 AM |
| Cannot assign static IP. | bsdnewbie999 | OpenBSD General | 5 | 21st June 2008 09:50 AM |
| dhcpd problems... dynamic and static leases present | edhunter | FreeBSD General | 7 | 16th May 2008 02:34 PM |