Re: Install without the DNS domain name from DHCP

2012-01-12 Thread scire
Andres Perera andre...@zoho.com wrote:
 
 don't know if you can use

 supersede domain-name ;

 this constantly comes up on the list for some reason. it shouldn't
 because it doesn't do anything

I pointed some months ago to this problem.

It seems the only clean alternative is to write your own
dhclient-script.

BTW, what seems to work is:

supersede domain-name .;

Rodrigo.



Re: Install without the DNS domain name from DHCP

2012-01-12 Thread ropers
On 12 January 2012 13:33,  sc...@web.de wrote:
 BTW, what seems to work is:

 supersede domain-name .;

Makes sense, because the . means root (i.e. the domain name root),
which incidentally is why http://www.openbsd.org./ also works.



Re: Install without the DNS domain name from DHCP

2012-01-12 Thread Alexander Hall

On 01/12/12 18:18, ropers wrote:

On 12 January 2012 13:33,sc...@web.de  wrote:

BTW, what seems to work is:

supersede domain-name .;


Makes sense, because the . means root (i.e. the domain name root),
which incidentally is why http://www.openbsd.org./ also works.



Not incidentally. Intentionally. It explicitly makes the resolver _not_ 
try to append the 'search ...' part from resolv.conf, should it not find 
a requested address.


Try setting 'search whitehouse.gov' in /etc/resolv.conf and then try the 
following links:


http://www/ = NSFW
http://www./= SFW



Re: Install without the DNS domain name from DHCP

2012-01-11 Thread Andres Perera
On Sun, Jan 1, 2012 at 4:22 PM, bofh goodb...@gmail.com wrote:
 On Sun, Jan 1, 2012 at 2:47 PM, Josh Jevosh jev...@gmail.com wrote:
 Hello.

 I'm installing OpenBSD 5.0. When I configure the networking to DHCP it
goes
 ahead and sets the DNS domain name to something that it got from my ISP. I
 would like to only use the short name that I specified as the hostname as
 the entire hostname excluding the rest of it that comes from my ISP. How
do
 I do that?

 You want to play with the options in /etc/dhclient.conf. B I have
 supersede host-name and supersede domain-name in mine. B However, I
 don't know if you can use

 supersede domain-name ;

this constantly comes up on the list for some reason. it shouldn't
because it doesn't do anything

once you actually test it, you'll see that setting an option to the
empty string is the same as not setting the option at all (so dhclient
fallsback to defaults)

maybe it needs to be documented somewhere...


 as a valid option. B The better way is probably to include a search
 line in resolv.conf for the domain you are going to use (or the domain
 your ISP gives you). B Or get a free one from dyndns.org (or any other
 free ones).

 Everyone should really use FQDN - short names suck and make people lazy.


 --
 http://www.glumbert.com/media/shift
 http://www.youtube.com/watch?v=tGvHNNOLnCk
 This officer's men seem to follow him merely out of idle curiosity.
 -- Sandhurst officer cadet evaluation.
 Securing an environment of Windows platforms from abuse - external or
 internal - is akin to trying to install sprinklers in a fireworks
 factory where smoking on the job is permitted. B -- Gene Spafford
 learn french: B http://www.youtube.com/watch?v=30v_g83VHK4



Re: Install without the DNS domain name from DHCP

2012-01-04 Thread bofh
There are other free ones, but dyndns have been severely abused by all
the cheap router manufacturers.  Someone needs to pay the electric
bill.  And I believe the sysadmins like to eat every now and then.

If you don't want to pay for it, then it is a want, not a need.


--
http://www.glumbert.com/media/shift
http://www.youtube.com/watch?v=tGvHNNOLnCk
This officer's men seem to follow him merely out of idle curiosity.
-- Sandhurst officer cadet evaluation.
Securing an environment of Windows platforms from abuse - external or
internal - is akin to trying to install sprinklers in a fireworks
factory where smoking on the job is permitted.  -- Gene Spafford
learn french:  http://www.youtube.com/watch?v=30v_g83VHK4



Install without the DNS domain name from DHCP

2012-01-01 Thread Josh Jevosh
Hello.

I'm installing OpenBSD 5.0. When I configure the networking to DHCP it goes
ahead and sets the DNS domain name to something that it got from my ISP. I
would like to only use the short name that I specified as the hostname as
the entire hostname excluding the rest of it that comes from my ISP. How do
I do that?

I've looked at the FAQ, especially
http://www.openbsd.org/faq/faq4.html#InstQuestions, but as far as I can
understand it doesn't cover this.

Thanks.

- Josh



Re: Install without the DNS domain name from DHCP

2012-01-01 Thread bofh
On Sun, Jan 1, 2012 at 2:47 PM, Josh Jevosh jev...@gmail.com wrote:
 Hello.

 I'm installing OpenBSD 5.0. When I configure the networking to DHCP it goes
 ahead and sets the DNS domain name to something that it got from my ISP. I
 would like to only use the short name that I specified as the hostname as
 the entire hostname excluding the rest of it that comes from my ISP. How do
 I do that?

You want to play with the options in /etc/dhclient.conf.  I have
supersede host-name and supersede domain-name in mine.  However, I
don't know if you can use

supersede domain-name ;

as a valid option.  The better way is probably to include a search
line in resolv.conf for the domain you are going to use (or the domain
your ISP gives you).  Or get a free one from dyndns.org (or any other
free ones).

Everyone should really use FQDN - short names suck and make people lazy.


--
http://www.glumbert.com/media/shift
http://www.youtube.com/watch?v=tGvHNNOLnCk
This officer's men seem to follow him merely out of idle curiosity.
-- Sandhurst officer cadet evaluation.
Securing an environment of Windows platforms from abuse - external or
internal - is akin to trying to install sprinklers in a fireworks
factory where smoking on the job is permitted.  -- Gene Spafford
learn french:  http://www.youtube.com/watch?v=30v_g83VHK4