man dhclient [was Re: resolv.conf getting rewritten at system startup]

2006-03-16 Thread Duane Whitty

Erik Trulsson wrote:

On Thu, Mar 16, 2006 at 05:29:45PM -0400, Duane Whitty wrote:
  

Hi all,

I am running FBSD 6.0-RELEASE

I use  DHCP to configure my network interface

Thanks in advance,


Duane

P.S.

Is there a man page for the dhcp client FBSD 6 is using
(what is FBSD 6 using)?



'man dhclient' should work fine.
FBSD 6 uses the OpenBSD dhclient (which I believe derive from an older
version of the ISC one.)

  

Hi,

Yes, man dhclient in FBSD 6 does work fine.  I misinterpreted
how to apply its instructions.

Duane

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


Re: resolv.conf getting rewritten at system startup

2006-03-16 Thread Erik Trulsson
On Thu, Mar 16, 2006 at 05:29:45PM -0400, Duane Whitty wrote:
> Hi all,
> 
> I am running FBSD 6.0-RELEASE
> 
> I use  DHCP to configure my network interface.
> At startup my resolv.conf is overwritten, setting my
> nameserver to the address of the router running DHCP.
> 
> I tried commenting out almost all of the rc.d/resolv
> startup script but to no avail.
> 
> I read the man page for dhcp-options and then proceeded to add
> option domain-name-servers a.b.c.d
> This was also of no help.
> 
> I then remembered something about FBSD 6 no longer using ISC dhcp client.
> 
> I am running BIND 9.3.1 with internal and external views of my namespace 
> set-up so
> it is imperative that I be able to tell hosts on the internal network 
> which name server
> to use.
> 
> If anyone has any ideas I'd appreciate the help.

Read the manpage for dhclient.conf(5) and look at the 'supersede' or
'prepend' directives.

E.g. If you always want to use a nameserver with IP 12.34.56.78
you would put the line

supersede domain-name-servers 12.34.56.78;

in /etc/dhclient.conf


> 
> Thanks in advance,
> 
> Duane
> 
> P.S.
> 
> Is there a man page for the dhcp client FBSD 6 is using
> (what is FBSD 6 using)?

'man dhclient' should work fine.
FBSD 6 uses the OpenBSD dhclient (which I believe derive from an older
version of the ISC one.)

-- 

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


Re: resolv.conf getting rewritten at system startup

2006-03-16 Thread Duane Whitty

Beech Rintoul wrote:

On Thursday 16 March 2006 12:29, Duane Whitty wrote:
  

Hi all,

I am running FBSD 6.0-RELEASE

I use  DHCP to configure my network interface.
At startup my resolv.conf is overwritten, setting my
nameserver to the address of the router running DHCP.

I tried commenting out almost all of the rc.d/resolv
startup script but to no avail.

I read the man page for dhcp-options and then proceeded to add
option domain-name-servers a.b.c.d
This was also of no help.

I then remembered something about FBSD 6 no longer using ISC dhcp client.

I am running BIND 9.3.1 with internal and external views of my namespace
set-up so
it is imperative that I be able to tell hosts on the internal network
which name server
to use.

If anyone has any ideas I'd appreciate the help.



You need to use supersede like this:

interface "ath0"   {
supersede domain-name "yourdomain.com";
supersede domain-name-servers 127.0.0.1;
}

See man dhclient.conf for more options.

Beech
  

Hi,

That worked perfectly.  Thanks to all for the quick responses.

Sincerely,

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


Re: resolv.conf getting rewritten at system startup

2006-03-16 Thread Erik Nørgaard

Duane Whitty wrote:


I use  DHCP to configure my network interface.
At startup my resolv.conf is overwritten, setting my
nameserver to the address of the router running DHCP.


dhclient, also the new one updates /etc/resolv.conf with the information 
received from the dhcp server. You can change things by configuring 
dhclient editing /etc/dhclient.conf


see dhclient.conf(5) and dhcp-options(5)

Cheers, Erik
--
Ph: +34.666334818  web: www.locolomo.org
S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt
Subject ID:  9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72
Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: resolv.conf getting rewritten at system startup

2006-03-16 Thread Beech Rintoul
On Thursday 16 March 2006 12:29, Duane Whitty wrote:
> Hi all,
>
> I am running FBSD 6.0-RELEASE
>
> I use  DHCP to configure my network interface.
> At startup my resolv.conf is overwritten, setting my
> nameserver to the address of the router running DHCP.
>
> I tried commenting out almost all of the rc.d/resolv
> startup script but to no avail.
>
> I read the man page for dhcp-options and then proceeded to add
> option domain-name-servers a.b.c.d
> This was also of no help.
>
> I then remembered something about FBSD 6 no longer using ISC dhcp client.
>
> I am running BIND 9.3.1 with internal and external views of my namespace
> set-up so
> it is imperative that I be able to tell hosts on the internal network
> which name server
> to use.
>
> If anyone has any ideas I'd appreciate the help.
>
You need to use supersede like this:

interface "ath0"   {
supersede domain-name "yourdomain.com";
supersede domain-name-servers 127.0.0.1;
}

See man dhclient.conf for more options.

Beech
-- 

---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/"\   ASCII Ribbon Campaign  | Mangohealth
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - XanGo - http://www.mangohealth.org
---













pgpUaQif4jJMl.pgp
Description: PGP signature


RE: resolv.conf

2005-08-16 Thread Ted Mittelstaedt
just set the resolv.conf read-only, that should take care of it.

Ted

>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Ronny Machado
>C.
>Sent: Tuesday, August 16, 2005 7:07 AM
>To: freebsd-questions@freebsd.org
>Subject: RE: resolv.conf
>
>
>yep bro...that's it...
>
>-Mensaje original-
>De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de
>Lowell Gilbert
>Enviado el: Martes, 16 de Agosto de 2005 10:02
>Para: Ronny Machado C.
>CC: freebsd-questions@freebsd.org
>Asunto: Re: resolv.conf
>
>
>"Ronny Machado C." <[EMAIL PROTECTED]> writes:
>
>> Hi list,
>>
>> I'm new to FreeBSD, and this is the first time I configure a
>FreeBSD box. Ok, let's get to the point: my problem is with DNS
>resolution, form some reason the resolv.conf changes after some
>time (10  to 20 minutes), from my DNS IP to the rl0 IP. Does
>any one know why? My machine is an AMD64/FreeBSD 5.3 with PPPoE
>for an ADSL connection,
>
>You are using DHCP on rl0, with a lease of an hour or less?
>___
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to
>"[EMAIL PROTECTED]"
>
>--
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date:
>8/15/2005
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 8/15/2005

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


Re: resolv.conf

2005-08-16 Thread Micheal Patterson


.


- Original Message - 
From: "Ronny Machado C." <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, August 16, 2005 8:54 AM
Subject: resolv.conf


Hi list,

I'm new to FreeBSD, and this is the first time I configure a FreeBSD box. 
Ok, let's get to the point: my problem is with DNS resolution, form some 
reason the resolv.conf changes after some time (10  to 20 minutes), from my 
DNS IP to the rl0 IP. Does any one know why? My machine is an AMD64/FreeBSD 
5.3 with PPPoE for an ADSL connection,



greetings from .CL,

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



As you may have seen already, this is a common issue with systems running 
dhclient. It will overwrite the resolv.conf with the ISP provided dns 
information as soon as it obtains it from the dhcp server. To counter this, 
do this with your dhclient.conf file (/etc/dhclient.conf) and create a 
prepend entry for each server you want to answer your dns requests. Take 
note, the file is read from top to bottom and in the example below, 
127.0.0.1 would be the primary dns server for your system.


interface "rl0" {
   prepend domain-name-servers enteryourdnsiphere
   prepend domain-name-servers enteryourdnsiphere
   prepend domain-name-servers 127.0.0.1;
}

--

Micheal Patterson
Senior Communications Systems Engineer
405-917-0600

Confidentiality Notice:  This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message 


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


Re: resolv.conf

2005-08-16 Thread Jon Mercer
Ronny,

It sounds as though this is something to do with the DHCP client software,
which can be configured through /etc/dhclient.conf.

Something like the following might be a workaround, but  I'm
not an experienced user of PPPoE and may be barking up the wrong
tree.


interface "rl0" {
  prepend domain-name-servers ;
  request subnet-mask, broadcast-address,  time-offset, routers,
domain-name,   domain-name-servers,  hostname;
  require subnet-mask, domain-name-servers;
}

HTH,

Jon






On Tue, August 16, 2005 14:54, Ronny Machado C. wrote:
> Hi list,
>
> I'm new to FreeBSD, and this is the first time I configure a FreeBSD box.
> Ok, let's get to the point: my problem is with DNS resolution, form some
> reason the resolv.conf changes after some time (10  to 20 minutes), from
> my DNS IP to the rl0 IP. Does any one know why? My machine is an
> AMD64/FreeBSD 5.3 with PPPoE for an ADSL connection,
>
>
> greetings from .CL,
>
> pElA'0
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
>


---
Achean Ltdhttp://www.achean.com
Jon Mercer  [EMAIL PROTECTED]  Director
---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: resolv.conf

2005-08-16 Thread Ronny Machado C.
yep bro...that's it...

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de
Lowell Gilbert
Enviado el: Martes, 16 de Agosto de 2005 10:02
Para: Ronny Machado C.
CC: freebsd-questions@freebsd.org
Asunto: Re: resolv.conf


"Ronny Machado C." <[EMAIL PROTECTED]> writes:

> Hi list,
> 
> I'm new to FreeBSD, and this is the first time I configure a FreeBSD box. Ok, 
> let's get to the point: my problem is with DNS resolution, form some reason 
> the resolv.conf changes after some time (10  to 20 minutes), from my DNS IP 
> to the rl0 IP. Does any one know why? My machine is an AMD64/FreeBSD 5.3 with 
> PPPoE for an ADSL connection, 

You are using DHCP on rl0, with a lease of an hour or less?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: resolv.conf

2005-08-16 Thread Lowell Gilbert
"Ronny Machado C." <[EMAIL PROTECTED]> writes:

> Hi list,
> 
> I'm new to FreeBSD, and this is the first time I configure a FreeBSD box. Ok, 
> let's get to the point: my problem is with DNS resolution, form some reason 
> the resolv.conf changes after some time (10  to 20 minutes), from my DNS IP 
> to the rl0 IP. Does any one know why? My machine is an AMD64/FreeBSD 5.3 with 
> PPPoE for an ADSL connection, 

You are using DHCP on rl0, with a lease of an hour or less?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: resolv.conf - hosts

2004-11-18 Thread Louis LeBlanc
On 11/18/04 02:23 PM, Bill Schoolcraft sat at the `puter and typed:
> At Thu, 18 Nov 2004 it looks like Brian Henning composed:
> 
> > I am running FBSD 4.10, does the /etc/nsswitch.conf file work on
> > freebsd 4.10 or is it just for 5.X?
> 
> That's a good question for I don't see it on my 4.10, but it's a
> very old, or very "inherent" file in all the Unix based systems
> I've seen.  It comes from Solaris operating systems by origin.

According to /usr/src/UPDATING it was imported from NetBSD in
September of 2000:

2906:
nsswitch has been imported from NetBSD.  Among other things,
this means that /etc/host.conf is no longer used.  See
nsswitch.conf(5) instead.  Note that at boot time rc.network
will attempt to produce a new nsswitch.conf file for you if
you don't have one, and you have host.conf.


Why it never showed up in 4.10 I couldn't say, but
I have two 4.10 boxes with nary a hint of nsswitch.conf except in the
linux compat directories.  Only my 5.3 box has it in /etc/.

Lou
-- 
Louis LeBlanc   [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org ԿԬ

Performance:
  A statement of the speed at which a computer system works.  Or
  rather, might work under certain circumstances.  Or was rumored
  to be working over in Jersey about a month ago.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: resolv.conf - hosts

2004-11-18 Thread Bill Schoolcraft
At Thu, 18 Nov 2004 it looks like Brian Henning composed:

> I am running FBSD 4.10, does the /etc/nsswitch.conf file work on
> freebsd 4.10 or is it just for 5.X?

That's a good question for I don't see it on my 4.10, but it's a
very old, or very "inherent" file in all the Unix based systems
I've seen.  It comes from Solaris operating systems by origin.

--
Bill Schoolcraft
PO Box 210076
San Francisco,CA 94121
http://billschoolcraft.com

"We can find no wealth above a healthy body and a happy heart."



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


Re: resolv.conf - hosts

2004-11-18 Thread Louis LeBlanc
On 11/18/04 04:09 PM, Brian Henning sat at the `puter and typed:
> On Thu, 18 Nov 2004 14:06:33 -0800 (PST), Bill Schoolcraft
> <[EMAIL PROTECTED]> wrote:
> > At Thu, 18 Nov 2004 it looks like Brian Henning composed:
> > 
> > 
> > 
> > > Greetings All:
> > >
> > > Is it possible to add a line above that name server entries in the
> > > resolv.conf file that will tell the system to check the hosts file for
> > > a resolution before querying the dns server(s)?
> > 
> > That is normally done in /etc/nsswitch.conf
> > 
> > --
> > Bill Schoolcraft
> > PO Box 210076
> > San Francisco,CA 94121
> > http://billschoolcraft.com
> > 
> > "We can find no wealth above a healthy body and a happy heart."
> > 
> > 
> 
> 
> I am running FBSD 4.10, does the /etc/nsswitch.conf file work on
> freebsd 4.10 or is it just for 5.X?

That's new in 5.3.  4.10 still uses /etc/host.conf.  In 5.3,
/etc/host.conf is automagically generated from /etc/nsswitch.conf.

Lou
-- 
Louis LeBlanc   [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org ԿԬ

Anything cut to length will be too short.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: resolv.conf - hosts

2004-11-18 Thread Brian Henning
On Thu, 18 Nov 2004 14:06:33 -0800 (PST), Bill Schoolcraft
<[EMAIL PROTECTED]> wrote:
> At Thu, 18 Nov 2004 it looks like Brian Henning composed:
> 
> 
> 
> > Greetings All:
> >
> > Is it possible to add a line above that name server entries in the
> > resolv.conf file that will tell the system to check the hosts file for
> > a resolution before querying the dns server(s)?
> 
> That is normally done in /etc/nsswitch.conf
> 
> --
> Bill Schoolcraft
> PO Box 210076
> San Francisco,CA 94121
> http://billschoolcraft.com
> 
> "We can find no wealth above a healthy body and a happy heart."
> 
> 


I am running FBSD 4.10, does the /etc/nsswitch.conf file work on
freebsd 4.10 or is it just for 5.X?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: resolv.conf - hosts

2004-11-18 Thread Bill Schoolcraft
At Thu, 18 Nov 2004 it looks like Brian Henning composed:

> Greetings All:
>
> Is it possible to add a line above that name server entries in the
> resolv.conf file that will tell the system to check the hosts file for
> a resolution before querying the dns server(s)?

That is normally done in /etc/nsswitch.conf

--
Bill Schoolcraft
PO Box 210076
San Francisco,CA 94121
http://billschoolcraft.com

"We can find no wealth above a healthy body and a happy heart."



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


Re: resolv.conf - hosts

2004-11-18 Thread Kevin D. Kinsey, DaleCo, S.P.
Brian Henning wrote:
Greetings All:
Is it possible to add a line above that name server entries in the
resolv.conf file that will tell the system to check the hosts file for
a resolution before querying the dns server(s)?
Thanks,
Brian
 

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


Re: resolv.conf - hosts

2004-11-18 Thread Charlie Schluting
Brian Henning wrote:
Greetings All:
Is it possible to add a line above that name server entries in the
resolv.conf file that will tell the system to check the hosts file for
a resolution before querying the dns server(s)?
Thanks,
Depending on your version of freebsd, nsswitch.conf will have:
hosts: files dns
If you don't have /etc/nsswitch.conf ...I don't know how it was done 
before that was introduced/brought back.

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


Re: resolv.conf - hosts

2004-11-18 Thread Louis LeBlanc
On 11/18/04 02:43 PM, Brian Henning sat at the `puter and typed:
> Greetings All:
> 
> Is it possible to add a line above that name server entries in the
> resolv.conf file that will tell the system to check the hosts file for
> a resolution before querying the dns server(s)?
> 
> Thanks,
> 
> Brian

That would be the /etc/host.conf file.  Standard 5.3 version goes like
this:

# $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $
# First try the /etc/hosts file
hosts
# Now try the nameserver next.
bind
# If you have YP/NIS configured, uncomment the next line
# nis

So it will do that automagically anyway.  If yours looks different than
this, that would probably be why you're not getting the host lookup.

Lou
-- 
Louis LeBlanc   [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org ԿԬ

furbling, v.:
  Having to wander through a maze of ropes at an airport or bank
  even when you are the only person in line.
-- Rich Hall, "Sniglets"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: resolv.conf missing

2004-10-08 Thread Bill Moran
Lance Earl <[EMAIL PROTECTED]> wrote:
> I am planning to convert my redhat server (www.dallypost.com) to 5.x
> freebsd when 5.x is released as stable. Until then, I am working with
> 5.1.2 to get familiar with it.
> 
> I have installed it on a dhcp network with the following:
> 
> dhcp server: 192.168.0.1
> fedora computer: 192.168.0.2
> bsd computer: 192.168.0.3
> 
> >From the v 5.x computer I can ping 182.168.0.1 and 192.168.0.2.
> When I try to ping 192.168.0.3, the ping fails. I can however ping
> 192.168.0.4 successfully. I cannot ping anything on the Internet.

Does 'netstat -rn' show a default route?  If not, then you need to set
one in /etc/rc.conf (or using sysinstall).

I'm a little confused, though.  Are you using DHCP?  If so, the DHCP
server _should_ set all this for you.  (Although a DHCP server doesn't
_have_ to set all this, it sure defeats the purpose if it doesn't)
If you're not using DHCP to set the network information on the BSD
machine, you'll need to manually add a "defaultrouter=" statement
in /etc/rc.conf, and manually create /etc/resolv.conf (or you can
use sysinstall to create them)

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: resolv.conf missing

2004-10-08 Thread Donald J. O'Neill
On Friday 08 October 2004 04:40 pm, Lance Earl wrote:
> I am planning to convert my redhat server (www.dallypost.com) to
> 5.x freebsd when 5.x is released as stable. Until then, I am
> working with 5.1.2 to get familiar with it.
>
> I have installed it on a dhcp network with the following:
>
> dhcp server: 192.168.0.1
> fedora computer: 192.168.0.2
> bsd computer: 192.168.0.3
>
> >From the v 5.x computer I can ping 182.168.0.1 and 192.168.0.2.
>
> When I try to ping 192.168.0.3, the ping fails. I can however
> ping 192.168.0.4 successfully. I cannot ping anything on the
> Internet.
>
> Problem 1: During the install, I set the ip to 192.168.0.3, yet
> the bsd computer is responding as 192.168.0.4.

I suspect your dhcp server has reassigned the ip. ifconfig will tell 
you what the ip address is for the bsd computer.

>
> Problem 2: Because I cannot ping the internet, I went to take a
> look at etc/resolv.conf but it is not there.

Put resolv.conf in. This is something I've always had to do after a 
fresh install. Are you familiar with what should be in it?

>
> I have installed v 4.9 on multiple occasions and it has always
> worked fine. Installion of 5.1.2 exactly the same way fails to
> connect to the internet via my gateway. Any help will be
> appreciated.
>

Hope that helps a bit.

Don
-- 
Donald J. O'Neill
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: resolv.conf missing

2004-10-08 Thread Nathan Kinkade
On Fri, Oct 08, 2004 at 03:40:40PM -0600, Lance Earl wrote:
> I am planning to convert my redhat server (www.dallypost.com) to 5.x
> freebsd when 5.x is released as stable. Until then, I am working with
> 5.1.2 to get familiar with it.
> 
> I have installed it on a dhcp network with the following:
> 
> dhcp server: 192.168.0.1
> fedora computer: 192.168.0.2
> bsd computer: 192.168.0.3
> 
> >From the v 5.x computer I can ping 182.168.0.1 and 192.168.0.2.
> When I try to ping 192.168.0.3, the ping fails. I can however ping
> 192.168.0.4 successfully. I cannot ping anything on the Internet.
> 
> Problem 1: During the install, I set the ip to 192.168.0.3, yet the bsd
> computer is responding as 192.168.0.4.
> 
> Problem 2: Because I cannot ping the internet, I went to take a look at
> etc/resolv.conf but it is not there.
> 
> I have installed v 4.9 on multiple occasions and it has always worked
> fine. Installion of 5.1.2 exactly the same way fails to connect to the
> internet via my gateway. Any help will be appreciated.

Was it a type that you excluded the initial slash (/) from
etc/resolv.conf?  resolv.conf is usually just 3 or 4 lines longs, so if
for some strange reason it is missing you can always just create it.
Put in one or two entries such as:

nameserver 
nameserver 

# man resolv.conf

Perhaps resolv.conf missing could be cause to invesitage whether your
install went well, and if other things might be missing as well?

Nathan
-- 
PGP Public Key: pgp.mit.edu:11371/pks/lookup?op=get&search=0xD8527E49


pgpvsrW02lCKv.pgp
Description: PGP signature


Re: resolv.conf/named

2003-08-14 Thread Travis Fitch
try the search keyword as well

# /etc/resolv.conf
domain internal.sricrm.com
search internal.sricrm.com
nameserver 0.0.0.0
Travis

Stuart Whelan wrote:

# /etc/resolv.conf
domain internal.sricrm.com
nameserver 10.1.2.2


Shouldn't nameserver be 127.0.0.1 if you have named running on the local
machine?
Cheers,
Stuart Whelan
Technical Lead
Simulation Hardware LTD
DDI:  +64  3 3778866
Mobile:   +64 27 2828074
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 4/08/2003
 

___
[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: [JunkMail] RE: resolv.conf/named

2003-08-14 Thread Mark Woodson
On Tuesday 12 August 2003 04:38 pm, Stuart Whelan wrote:
> > # /etc/resolv.conf
> > domain internal.sricrm.com
> > nameserver 10.1.2.2
>
> Shouldn't nameserver be 127.0.0.1 if you have named running on the local
> machine?

Yes, on the machine with named running it's set to 127.0.0.1.  That's the 
setting from a different machine (the one I work on), the only place it's not 
identical is the nameserver line. 

-Mark

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


RE: resolv.conf/named

2003-08-14 Thread Stuart Whelan
> # /etc/resolv.conf
> domain internal.sricrm.com
> nameserver 10.1.2.2

Shouldn't nameserver be 127.0.0.1 if you have named running on the local
machine?

Cheers,
Stuart Whelan
Technical Lead
Simulation Hardware LTD

DDI:  +64  3 3778866
Mobile:   +64 27 2828074

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 4/08/2003
 

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


Re: resolv.conf

2003-02-10 Thread Dirk-Willem van Gulik


On Sun, 9 Feb 2003, Per Nilsson wrote:

> I got to have this to be enable to send mail, and from time to time, the
> file /etc/resolv.conf changes back to the standard:
>
> search
> nameserver 10.0.0.1
> nameserver 10.0.0.2
>
> and i dont know how to do to have the resolv.conf NOT to be changed

You propably have dhclient running, the DHCP deamon. Ever time your IP
lease expires (typically every 5 to 60 minutes) it will negotiate a new
IP address for you with your DHCP server. Along with the settings it get
from the DHCP server are DNS settings.

See man dhclient.conf or add in /etc a file

#/etc/dhclient.conf
supersede domain-name "sparbanken.org"

DW





To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: resolv.conf

2003-02-09 Thread Thomas Spreng
hi, 

On Sun, Feb 09, 2003 at 07:03:43PM +0100, Per Nilsson wrote:
> 
> I have this problem:
> when i run me mailserver (postfix), I gotto have theese lines in
> resolv.conf:
> 
> domain sparbanken.org
> nameserver 10.0.0.1
> nameserver 10.0.0.2
> 
> I got to have this to be enable to send mail, and from time to time, the
> file /etc/resolv.conf changes back to the standard:
> 
> search
> nameserver 10.0.0.1
> nameserver 10.0.0.2
> 
> and i dont know how to do to have the resolv.conf NOT to be changed

if you're running dhclient, check /etc/dhclient.conf or 'man 5 dhclient.conf'

cheers...

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message