Re: DNS Resolver Problem

2007-01-16 Thread Garrett Cooper

On Jan 15, 2007, at 10:47 PM, Bob McIsaac wrote:


linux quest wrote:

Dear Jay  The FreeBSD Communities,

Thanks for putting your time and patience to help me out. Anyway,  
I tried it out, both changing the rc.conf and the dhclient.conf  
(one at a time). After that (for both of the ways), I did manage  
to stop the resolv.conf from being overwritten after the PC  
reboot. However, when I ping 192.168.52.1 or 192.168.52.2, the  
error msg says that there is no route to both of the IP. Even  
after I add the default route by using command line ... I am still  
unable to ping google.com.


Then, I undo everything by using VMWare... (including undo the  
DHCP configuration in rc.conf) so that I am able to ping  
google.com again.
Since, I desperately needed to connect to the Internet at this  
point of time, I create a file called resolv.conf in /root ... I  
am thinking how can I create a script so that it can copy  
resolv.conf from /root to /etc/resolv.conf every 30 minutes at  
start up - This is because I don't wanna manually type in cp / 
root/resolv.conf /etc/resolv.conf every 30 minutes.


Hope somebody can share with me the simple coding. Thanks :)

Regards,
Linux Quest

Jay Chandler [EMAIL PROTECTED] wrote: Please don't top-post.

linux quest wrote:


Dear Jay,

Actually, I am running FreeBSD Unix on a VMWare machine (Host OS:  
Win2003, Guest OS: FreeBSD).


Any ideas how I can disable / ignore the routing from the VMnet8?  
Below are the only VMWare NAT configuration that I have access  
to. No DHCP enable / disable option.



Ethernet adapter VMware Network Adapter VMnet8:

   Connection-specific DNS Suffix  . :
   IP Address. . . . . . . . . . . . : 192.168.52.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.52.2


When I install FreeBSD, I remember I did select some option to  
enable DHCP. Perhaps, I should disable the DHCP service in FreeBSD 
(Guest OS) - if so, any idea how do I do it?


Thanks :)

Regards,
Linux Quest




Simple enough, then.
Edit /etc/rc.conf, and remove the line relating to the dhcp  
client.  Then add:

defaultrouter=192.168.51.2
hostname=boxname!
ifconfig_em0=inet 192.168.52.WHATEVERYOUWANT  netmask 255.255.255.0



Hi:

DHCP intends that everything works easily.  However, if the DHCP  
lease is unsatisfactory, you can
change it after doing man dhclient.conf.   Can you post /var/db/ 
dhclient.leases? Also,  in one shell
type tcpdump -v -c 20 and in another do ping or click a web  
page.  Finally, netstat -r


regards,
-Bob-


	defaultrouter should match the gateway IP address for the virtual  
interface you're using in FreeBSD under vmware; defaultrouter is an  
alias for the default route use by the kernel for directing packets  
(this can be viewed by looking at netstat -nr and looking for the  
default route, or route show default--more verbose output). The  
subnet/IP should match something similar to what's provided with  
DHCP--just in static form (which /etc/rc.conf will provide).

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


DNS Resolver Problem

2007-01-15 Thread linux quest
I have a problem with the DNS setting in FreeBSD. Every 1 hour, I will not be 
able to ping google.com (because I need to type in my ISP's DNS into 
/etc/resolv.conf) May I know what is the best solution for this, so that I do 
not have to type in my ISP's DNS to the resolver all the time? Perhaps, should 
I set a static IP configuration? If so, may I know which file should I modify? 

Thanks.

Regards, 
Linux Quest
 
-
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS Resolver Problem

2007-01-15 Thread Jay Chandler

linux quest wrote:
I have a problem with the DNS setting in FreeBSD. Every 1 hour, I will not be able to ping google.com (because I need to type in my ISP's DNS into /etc/resolv.conf) May I know what is the best solution for this, so that I do not have to type in my ISP's DNS to the resolver all the time? Perhaps, should I set a static IP configuration? If so, may I know which file should I modify? 


Thanks.
  
Their DNS changes hourly?  What the heck ISP are you using that pulls 
such things?


Or do you mean to say that you're on DHCP, and when it renews the lease 
it clears out DNS info? 


--
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: emissions from GSM-phones 


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


Re: DNS Resolver Problem

2007-01-15 Thread Garrett Cooper

Jay Chandler wrote:

linux quest wrote:
I have a problem with the DNS setting in FreeBSD. Every 1 hour, I 
will not be able to ping google.com (because I need to type in my 
ISP's DNS into /etc/resolv.conf) May I know what is the best solution 
for this, so that I do not have to type in my ISP's DNS to the 
resolver all the time? Perhaps, should I set a static IP 
configuration? If so, may I know which file should I modify?

Thanks.
  
Their DNS changes hourly?  What the heck ISP are you using that pulls 
such things?


Or do you mean to say that you're on DHCP, and when it renews the 
lease it clears out DNS info?
1. Could we see any relevant options in rc.conf related to network 
configuration (interface_*, dns, DHCP, etc).

2. Could you provide your /etc/resolv.conf?
3. Have you tried contacting your ISP about this? Maybe their DHCP 
settings are skewed.

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


Re: DNS Resolver Problem

2007-01-15 Thread Jay Chandler

linux quest wrote:

Dear Jay,

Thanks. That is exactly what I mean (sorry not explaining it 
properly). My network is DHCP enabled. When the lease expired, the 
resolver is also cleared out. Any ideas how I can configure a static 
DNS IP?


Here is what I think may work (Please correct me if I am wrong)... 
Perhaps I should configure a static IP on this client using FreeBSD. 
May I know how can I do that, and at the same time, I would also like 
to disable DHCP enable settings.


Thanks again.

Regards,
Linux Quest

*/Jay Chandler [EMAIL PROTECTED]/* wrote:

linux quest wrote:
 I have a problem with the DNS setting in FreeBSD. Every 1 hour,
I will not be able to ping google.com (because I need to type in
my ISP's DNS into /etc/resolv.conf) May I know what is the best
solution for this, so that I do not have to type in my ISP's DNS
to the resolver all the time? Perhaps, should I set a static IP
configuration? If so, may I know which file should I modify?

 Thanks.

Their DNS changes hourly? What the heck ISP are you using that pulls
such things?

Or do you mean to say that you're on DHCP, and when it renews the
lease
it clears out DNS info?

-- 
Jay Chandler

Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: emissions from GSM-phones

Simple enough to do-- first off, is this box running under a router or 
some such that you control, or is it getting a public IP through your 
ISP?  If the latter, setting a static IP might come back to haunt you.


I suspect from the way you describe it, that you control a local router 
that's giving bogus DNS information out with its DHCP lease, in which 
case the simplest fix is to adjust said router so it Doesn't Do That (tm).


In any case: http://www.freebsddiary.org/resolv.php should help you out.


--
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: emissions from GSM-phones 


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


Re: DNS Resolver Problem

2007-01-15 Thread Jonathan Horne
On Monday 15 January 2007 12:22, Garrett Cooper wrote:
 Jay Chandler wrote:
  linux quest wrote:
  I have a problem with the DNS setting in FreeBSD. Every 1 hour, I
  will not be able to ping google.com (because I need to type in my
  ISP's DNS into /etc/resolv.conf) May I know what is the best solution
  for this, so that I do not have to type in my ISP's DNS to the
  resolver all the time? Perhaps, should I set a static IP
  configuration? If so, may I know which file should I modify?
  Thanks.
 
  Their DNS changes hourly?  What the heck ISP are you using that pulls
  such things?
 
  Or do you mean to say that you're on DHCP, and when it renews the
  lease it clears out DNS info?

 1. Could we see any relevant options in rc.conf related to network
 configuration (interface_*, dns, DHCP, etc).
 2. Could you provide your /etc/resolv.conf?
 3. Have you tried contacting your ISP about this? Maybe their DHCP
 settings are skewed.
 -Garrett

i would also recommend you take a look at /etc/dhclient.conf (and man page).  
i edited mine to prevent alternate DNS settings that i put into my 
resolv.conf file from being overwritten by the DHCP server each time i renew 
my lease.

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


Re: DNS Resolver Problem

2007-01-15 Thread Jay Chandler

Please don't top-post.

linux quest wrote:

Dear Jay,

Actually, I am running FreeBSD Unix on a VMWare machine (Host OS: 
Win2003, Guest OS: FreeBSD).


Any ideas how I can disable / ignore the routing from the VMnet8? 
Below are the only VMWare NAT configuration that I have access to. No 
DHCP enable / disable option.



Ethernet adapter VMware Network Adapter VMnet8:

   Connection-specific DNS Suffix  . :
   IP Address. . . . . . . . . . . . : 192.168.52.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.52.2


When I install FreeBSD, I remember I did select some option to enable 
DHCP. Perhaps, I should disable the DHCP service in FreeBSD(Guest OS) 
- if so, any idea how do I do it?


Thanks :)

Regards,
Linux Quest


Simple enough, then. 

Edit /etc/rc.conf, and remove the line relating to the dhcp client.  
Then add:

defaultrouter=192.168.51.2
hostname=boxname!
ifconfig_em0=inet 192.168.52.WHATEVERYOUWANT  netmask 255.255.255.0

--
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: emissions from GSM-phones 


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


Re: DNS Resolver Problem

2007-01-15 Thread linux quest
Dear Jay,

Actually, I am running FreeBSD Unix on a VMWare machine (Host OS: Win2003, 
Guest OS: FreeBSD). 

Any ideas how I can disable / ignore the routing from the VMnet8? Below are the 
only VMWare NAT configuration that I have access to. No DHCP enable / disable 
option.


Ethernet adapter VMware Network Adapter VMnet8:

   Connection-specific DNS Suffix  . :
   IP Address. . . . . . . . . . . . : 192.168.52.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.52.2


When I install FreeBSD, I remember I did select some option to enable DHCP. 
Perhaps, I should disable the DHCP service in FreeBSD(Guest OS) - if so, any 
idea how do I do it?

Thanks :)

Regards,
Linux Quest


Jay Chandler [EMAIL PROTECTED] wrote: linux quest wrote:
 Dear Jay,

 Thanks. That is exactly what I mean (sorry not explaining it 
 properly). My network is DHCP enabled. When the lease expired, the 
 resolver is also cleared out. Any ideas how I can configure a static 
 DNS IP?

 Here is what I think may work (Please correct me if I am wrong)... 
 Perhaps I should configure a static IP on this client using FreeBSD. 
 May I know how can I do that, and at the same time, I would also like 
 to disable DHCP enable settings.

 Thanks again.

 Regards,
 Linux Quest

 */Jay Chandler /* wrote:

 linux quest wrote:
  I have a problem with the DNS setting in FreeBSD. Every 1 hour,
 I will not be able to ping google.com (because I need to type in
 my ISP's DNS into /etc/resolv.conf) May I know what is the best
 solution for this, so that I do not have to type in my ISP's DNS
 to the resolver all the time? Perhaps, should I set a static IP
 configuration? If so, may I know which file should I modify?
 
  Thanks.
 
 Their DNS changes hourly? What the heck ISP are you using that pulls
 such things?

 Or do you mean to say that you're on DHCP, and when it renews the
 lease
 it clears out DNS info?

 -- 
 Jay Chandler
 Network Administrator, Chapman University
 714.628.7249 / [EMAIL PROTECTED]
 Today's Excuse: emissions from GSM-phones

Simple enough to do-- first off, is this box running under a router or 
some such that you control, or is it getting a public IP through your 
ISP?  If the latter, setting a static IP might come back to haunt you.

I suspect from the way you describe it, that you control a local router 
that's giving bogus DNS information out with its DHCP lease, in which 
case the simplest fix is to adjust said router so it Doesn't Do That (tm).

In any case: http://www.freebsddiary.org/resolv.php should help you out.


-- 
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: emissions from GSM-phones 



 
-
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS Resolver Problem

2007-01-15 Thread linux quest
Dear Jay,

Thanks. That is exactly what I mean (sorry not explaining it properly). My 
network is DHCP enabled. When the lease expired, the resolver is also cleared 
out. Any ideas how I can configure a static DNS IP? 

Here is what I think may work (Please correct me if I am wrong)... Perhaps I 
should configure a static IP on this client using FreeBSD. May I know how can I 
do that, and at the same time, I would also like to disable DHCP enable 
settings. 

Thanks again.

Regards,
Linux Quest

Jay Chandler [EMAIL PROTECTED] wrote: linux quest wrote:
 I have a problem with the DNS setting in FreeBSD. Every 1 hour, I will not be 
 able to ping google.com (because I need to type in my ISP's DNS into 
 /etc/resolv.conf) May I know what is the best solution for this, so that I do 
 not have to type in my ISP's DNS to the resolver all the time? Perhaps, 
 should I set a static IP configuration? If so, may I know which file should I 
 modify? 

 Thanks.
   
Their DNS changes hourly?  What the heck ISP are you using that pulls 
such things?

Or do you mean to say that you're on DHCP, and when it renews the lease 
it clears out DNS info? 

-- 
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: emissions from GSM-phones 



 
-
Don't get soaked.  Take a quick peak at the forecast 
 with theYahoo! Search weather shortcut.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS Resolver Problem

2007-01-15 Thread Garrett Cooper

On Jan 15, 2007, at 10:32 AM, linux quest wrote:


Dear Jay,

Thanks. That is exactly what I mean (sorry not explaining it  
properly). My network is DHCP enabled. When the lease expired, the  
resolver is also cleared out. Any ideas how I can configure a  
static DNS IP?


Here is what I think may work (Please correct me if I am wrong)...  
Perhaps I should configure a static IP on this client using  
FreeBSD. May I know how can I do that, and at the same time, I  
would also like to disable DHCP enable settings.


Thanks again.

Regards,
Linux Quest

Jay Chandler [EMAIL PROTECTED] wrote: linux quest wrote:
I have a problem with the DNS setting in FreeBSD. Every 1 hour, I  
will not be able to ping google.com (because I need to type in my  
ISP's DNS into /etc/resolv.conf) May I know what is the best  
solution for this, so that I do not have to type in my ISP's DNS  
to the resolver all the time? Perhaps, should I set a static IP  
configuration? If so, may I know which file should I modify?


Thanks.


Their DNS changes hourly?  What the heck ISP are you using that pulls
such things?

Or do you mean to say that you're on DHCP, and when it renews the  
lease

it clears out DNS info?

--
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: emissions from GSM-phones


Secret I'm guessing is just to..
	1. Setup your Win2k3 install properly, network-wise. If you clicked  
the interface, went to TCP/IP settings, properties, then scrolled  
down to the DNS section you can setup the DNS server IPs statically  
so this doesn't occur all the time.
	2. Set the vmware preferences up so the IP would be static behind  
the NAT with the information in the NAT and then setup your info in / 
etc/rc.conf properly (search for interface_ in man rc.conf).

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


Re: DNS Resolver Problem

2007-01-15 Thread Bob McIsaac

linux quest wrote:
I have a problem with the DNS setting in FreeBSD. Every 1 hour, I will not be able to ping google.com (because I need to type in my ISP's DNS into /etc/resolv.conf) May I know what is the best solution for this, so that I do not have to type in my ISP's DNS to the resolver all the time? Perhaps, should I set a static IP configuration? If so, may I know which file should I modify? 


Thanks.

Regards, 
Linux Quest
  

Hi Mr Linux Quest:

I too have had a significant problem with the service provided by my 
ISP.  Too confuse

the issue, I am new to FreeBSD and Linux thought my ISP was fine.

Ping of anything worked fine but email and any brower were slow making a TCP 


connection.  Using tcpdump showed a 10 second wait. Ian Smith made very
helpful suggestions to guide me in solving the problem.

I was surprised to find that dhclient overwrites /etc/resolv.conf  since 
I assumed
that programs did not write to /etc.  My ISP is apparently misconfigured 
since
the dhcp lease names the router as the nameserver. Fortunately, such 
problems

can be fixed by modifying /etc/dhclient.conf.  But the first step is to use
command line whois to get the real nameserver IP. Example follows.

interface vr0 {

  prepend domain-name-servers 64.119.104.2;
;;; the above becomes the first line in /etc/resolv.conf

  request  subnet-mask, domain-name,
  domain-name-servers, host-name,
  routers,broadcast-address,
  dhcp-lease-time,
  dhcp-message-type,
  dhcp-server-identifier,
  dhcp-renewal-time,
  dhcp-rebinding-time;
}
You can look at the lease in /var/db/dhclient.leases.card name

Here is /etc/rc.conf
linux_enable=NO
moused_enable=YES
moused_port=/dev/psm0
moused_type=intellimouse
usbd_enable=YES
ifconfig_vr0=DHCP
hostname=buffy.den.com
apache_enable=NO

And /etc/hosts .. not sure what is needed here???
::1localhost.den.com localhost
127.0.0.1localhost.den.com localhost
192.168.1.102buffy.den.com buffy
254.1.168.192.in-addr.arpa 192.168.1.254
102.1.168.192.in-addr.arpa 192.168.1.102

The hostname gets the fixed address from the
dhcp lease.

regards,
-Bob-

PS:-  Do you have a person name?  John Doe ?



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


Re: DNS Resolver Problem

2007-01-15 Thread linux quest
Dear Jay  The FreeBSD Communities,

Thanks for putting your time and patience to help me out. Anyway, I tried it 
out, both changing the rc.conf and the dhclient.conf (one at a time). After 
that (for both of the ways), I did manage to stop the resolv.conf from being 
overwritten after the PC reboot. However, when I ping 192.168.52.1 or 
192.168.52.2, the error msg says that there is no route to both of the IP. Even 
after I add the default route by using command line ... I am still unable to 
ping google.com.

Then, I undo everything by using VMWare... (including undo the DHCP 
configuration in rc.conf) so that I am able to ping google.com again. 

Since, I desperately needed to connect to the Internet at this point of time, I 
create a file called resolv.conf in /root ... I am thinking how can I create a 
script so that it can copy resolv.conf from /root to /etc/resolv.conf every 30 
minutes at start up - This is because I don't wanna manually type in cp 
/root/resolv.conf /etc/resolv.conf every 30 minutes.

Hope somebody can share with me the simple coding. Thanks :)

Regards,
Linux Quest

Jay Chandler [EMAIL PROTECTED] wrote: Please don't top-post.

linux quest wrote:
 Dear Jay,

 Actually, I am running FreeBSD Unix on a VMWare machine (Host OS: 
 Win2003, Guest OS: FreeBSD).

 Any ideas how I can disable / ignore the routing from the VMnet8? 
 Below are the only VMWare NAT configuration that I have access to. No 
 DHCP enable / disable option.


 Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix  . :
IP Address. . . . . . . . . . . . : 192.168.52.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.52.2


 When I install FreeBSD, I remember I did select some option to enable 
 DHCP. Perhaps, I should disable the DHCP service in FreeBSD(Guest OS) 
 - if so, any idea how do I do it?

 Thanks :)

 Regards,
 Linux Quest


Simple enough, then. 

Edit /etc/rc.conf, and remove the line relating to the dhcp client.  
Then add:
defaultrouter=192.168.51.2
hostname=boxname!
ifconfig_em0=inet 192.168.52.WHATEVERYOUWANT  netmask 255.255.255.0

-- 
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: emissions from GSM-phones 



 
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS Resolver Problem

2007-01-15 Thread Bob McIsaac

linux quest wrote:

Dear Jay  The FreeBSD Communities,

Thanks for putting your time and patience to help me out. Anyway, I tried it 
out, both changing the rc.conf and the dhclient.conf (one at a time). After 
that (for both of the ways), I did manage to stop the resolv.conf from being 
overwritten after the PC reboot. However, when I ping 192.168.52.1 or 
192.168.52.2, the error msg says that there is no route to both of the IP. Even 
after I add the default route by using command line ... I am still unable to 
ping google.com.

Then, I undo everything by using VMWare... (including undo the DHCP configuration in rc.conf) so that I am able to ping google.com again. 


Since, I desperately needed to connect to the Internet at this point of time, I create a 
file called resolv.conf in /root ... I am thinking how can I create a script so that it 
can copy resolv.conf from /root to /etc/resolv.conf every 30 minutes at start up - This 
is because I don't wanna manually type in cp /root/resolv.conf 
/etc/resolv.conf every 30 minutes.

Hope somebody can share with me the simple coding. Thanks :)

Regards,
Linux Quest

Jay Chandler [EMAIL PROTECTED] wrote: Please don't top-post.

linux quest wrote:
  

Dear Jay,

Actually, I am running FreeBSD Unix on a VMWare machine (Host OS: 
Win2003, Guest OS: FreeBSD).


Any ideas how I can disable / ignore the routing from the VMnet8? 
Below are the only VMWare NAT configuration that I have access to. No 
DHCP enable / disable option.



Ethernet adapter VMware Network Adapter VMnet8:

   Connection-specific DNS Suffix  . :
   IP Address. . . . . . . . . . . . : 192.168.52.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.52.2


When I install FreeBSD, I remember I did select some option to enable 
DHCP. Perhaps, I should disable the DHCP service in FreeBSD(Guest OS) 
- if so, any idea how do I do it?


Thanks :)

Regards,
Linux Quest



Simple enough, then. 

Edit /etc/rc.conf, and remove the line relating to the dhcp client.  
Then add:

defaultrouter=192.168.51.2
hostname=boxname!
ifconfig_em0=inet 192.168.52.WHATEVERYOUWANT  netmask 255.255.255.0

  

Hi:

DHCP intends that everything works easily.  However, if the DHCP lease 
is unsatisfactory, you can
change it after doing man dhclient.conf.   Can you post 
/var/db/dhclient.leases? Also,  in one shell
type tcpdump -v -c 20 and in another do ping or click a web page.  
Finally, netstat -r


regards,
-Bob-

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


Re: resolver problem

2003-06-12 Thread Uwe Doering
exec wrote:
It seems I have a problem with resolver.
[...]
/etc/resolv.conf is right:

domain my.uni.org
nameserver xx.xx.xx.xx
nameserver yy.yy.yy.yy
nameserver zz.zz.zz.zz
All nameservers are working properly on every other machine. I deleted 
host.conf file (which was also right) and nothing changes.
What makes you think that deleting host.conf was the right thing to do?

Commands host, nslookup, and dig all work very well for both internal an
external sites. But ping for example fails:
cannot resolve www.xxx.yy: Unknown host
[...]
Host, nslookup, and dig use DNS automatically and exclusively, so there 
doesn't have to be any directive in the system telling them to do so. 
Most programs, however, use gethostbyname() etc. and need the 'bind' 
entry in host.conf, which you just removed by deleting this file.  If 
you restore the file DNS lookups will work.

   Uwe
--
Uwe Doering |  EscapeBox - Managed On-Demand UNIX Servers
[EMAIL PROTECTED]  |  http://www.escapebox.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


resolver problem

2003-06-11 Thread exec
It seems I have a problem with resolver.

ifconfig -a shows:

xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=3RXCSUM,TXCSUM
inet 162.x.y.z netmask 0xff00 broadcast 162.x.y.255
inet6 fe80::250:4ff:fe0a:f6f0%xl0 prefixlen 64 scopeid 0x1
ether 00:50:04:0a:f6:f0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
/etc/resolv.conf is right:

domain my.uni.org
nameserver xx.xx.xx.xx
nameserver yy.yy.yy.yy
nameserver zz.zz.zz.zz
All nameservers are working properly on every other machine. I deleted 
host.conf file (which was also right) and nothing changes.

Commands host, nslookup, and dig all work very well for both internal an
external sites. But ping for example fails:
cannot resolve www.xxx.yy: Unknown host

where www.xxx.yy is any machine name except localhost (which is taken 
from /etc/hosts).

When using IPs everything works fine of course.

I'm also running a sniffer which displays all in/out packets to my 1st
NS when I run host, nslookup, or dig. But all others (ping, 
traceroute,...) fail without even asking the NS (ie. the sniffer doesn't 
show a single packet!).

I wonder if anyone has had similar problems and how and if they were solved?



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