c127 I can't control openresolvconf - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old April 14th, 2012, 11:12
migle migle is offline
Junior Member
 
Join Date: Mar 2011
Location: Alcochete
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default I can't control openresolvconf

I have this machine, with static IP configuration and a nameserver, and my resolv.conf keeps being overwritten by openresolv.conf in FreeBSD 9.0 release.

You'll probably say that I need to configure /etc/resolvconf.conf properly, but I can't get it to generate the resolv.conf that I need.

What I want in /etc/resolv.conf is:
Code:
domain example.com
search example.com
nameserver 127.0.0.1
And I keep getting:
Code:
# Generated by resolvconf
search example.com
nameserver 127.0.0.1
nameserver 10.0.0.1
My /etc/resolvconf.conf is:
Code:
name_servers=127.0.0.1
search_domains=example.com
Heck, I think I have no DHCP-configured interfaces, but openresolvconf is probably getting that 10.0.0.1 address from DHCP for some reason. pgrep dhclient gives nothing and the configuration in /etc/rc.conf is:
Code:
# Network configuration
hostname="nicehost.example.com"
ifconfig_re0="inet 10.0.0.2/24"
ifconfig_re0_ipv6="inet6 2000:db:1234::1/64"
ifconfig_nfe0="inet 10.0.0.3/32"
ifconfig_nfe0_ipv6="inet6 2000:db:1234::2/128"

# Network routing options
defaultrouter="10.0.0.1"
ipv6_gateway_enable="YES"
rtadvd_enable="YES"
rtadvd_interfaces="re0"

# SixXS tunnel
sixxs_aiccu_enable="YES"
I would really want openresolvconf to just disappear, but I don't understand /etc/rc.d/resolv.

How can I do this?
1) How can I make openresolvconf go away?
2) If not, how can I configure it so that it never tries DHCP?

Thanks,

Last edited by DutchDaemon; April 15th, 2012 at 02:10. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old April 14th, 2012, 11:15
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

# pkg_delete -x openresolv

You don't need it.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old April 15th, 2012, 09:18
migle migle is offline
Junior Member
 
Join Date: Mar 2011
Location: Alcochete
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh, I wish it was that simple, SirDice. I know well I don't need it, but I didn't install it either.

In FreeBSD 9.0 it was integrated in the base system.

I'm pretty sure that if they included it in the base system, then there must be some knob somewhere that allows avoiding it.
But I can't find it.

Following your answer I went to check /etc/src.conf for some WITHOUT_OPENRESOLV knob, but there isn't one.

I'm still in the dark.

Thanks,

Last edited by DutchDaemon; April 16th, 2012 at 00:37.
Reply With Quote
  #4  
Old April 16th, 2012, 00:41
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,854
Thanks: 30
Thanked 1,892 Times in 1,335 Posts
Default

The knob appears not to have been implemented yet, but you might want to hack one yourself for now by looking at the /usr/src/tools/build/options/ directory. It looks like creating a file called WITHOUT_OPENRESOLV there and setting the eponymous knob in /ectsrc.conf should be enough.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
software fan control lyokoboy0 System Hardware 2 February 14th, 2011 15:25
USB MCE Remote Control ELSE Peripheral Hardware 2 January 24th, 2011 08:13
[Solved] man Control-T kenorb FreeBSD Development 2 November 10th, 2010 15:13
brightness control TCE Mobile Computing 10 May 10th, 2010 03:34
Fan Control h5n1 Mobile Computing 5 June 12th, 2009 20:16


All times are GMT +1. The time now is 05:07.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0