Re: [SOLVED] Which DNS servers did DHCP tell me to use?

2008-07-27 Thread Micha
On Sun, 27 Jul 2008 20:55:05 +0300
Omer Zak <[EMAIL PROTECTED]> wrote:

> While I still do not know if and which command allows one to retrieve
> all information transferred by a DHCP transaction, three people

Don't know about dhcp but regarding the original question regarding dns, two
commands to query dns servers are dig and nslookup

As for listening in on the dhcp transaction, possibly tcpdump or wireshark will
do the job.

> (Geoffrey S. Mendelson, Ori Idan and Micha )
> pointed out the file /etc/resolv.conf
> 
> Meanwhile, I found that when connection starts, the
> original /etc/resolv.conf is renamed as /etc/resolv.conf.pppd-backup,
> and a new /etc/resolv.conf is filled with values from the DHCP server.
> When connection is severed, the original /etc/resolv.conf is restored.
> 
> There are also /etc/dhclient-script, /etc/dhclient.conf (consisting only
> of comments), etc/dhcp3 (a directory, which has hooks for ntpdate and
> samba).
> 
>--- Omer
> 
> 

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



[SOLVED] Which DNS servers did DHCP tell me to use?

2008-07-27 Thread Omer Zak
While I still do not know if and which command allows one to retrieve
all information transferred by a DHCP transaction, three people
(Geoffrey S. Mendelson, Ori Idan and Micha )
pointed out the file /etc/resolv.conf

Meanwhile, I found that when connection starts, the
original /etc/resolv.conf is renamed as /etc/resolv.conf.pppd-backup,
and a new /etc/resolv.conf is filled with values from the DHCP server.
When connection is severed, the original /etc/resolv.conf is restored.

There are also /etc/dhclient-script, /etc/dhclient.conf (consisting only
of comments), etc/dhcp3 (a directory, which has hooks for ntpdate and
samba).

   --- Omer


-- 
My Commodore 64 is suffering from slowness and insufficiency of memory;
and its display device is grievously short of pixels.  Can anyone help?
My own blog is at http://www.zak.co.il/tddpirate/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]