Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 6th November 2010
guitarscn guitarscn is offline
Package Pilot
Join Date: Oct 2008
Posts: 166
Default How to add a nameserver in /etc/resolv.conf automatically

Okay, so it seems every time I reboot (or maybe every time I connect to the internet) it seems /etc/resolv.conf gets reset and everything I added before is gone. How can I make it so that it can change itself dynamically as needed, but always keep one line in there? I want to keep "nameserver" on top, right after the 'search' line which is the very 1st line in the file. So for example I want it like:

search blah
Where "nameserver" and "nameserver" might change accordingly by itself at any point, but I'd like "nameserver" to always be there first all the time. Is this possible?
Reply With Quote

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
Authoritative only BIND nameserver for local domain J65nko Guides 2 7th December 2009 07:08 AM
Best way to check if freebsd server is running a nameserver service/daemon Yuka FreeBSD General 7 6th November 2008 01:26 AM
start xscreensacer automatically rex FreeBSD General 2 15th October 2008 05:24 PM
Login automatically map7 FreeBSD General 1 12th October 2008 11:09 PM
difference between rc.conf and loader.conf disappearedng FreeBSD General 5 3rd September 2008 05:54 AM

All times are GMT. The time now is 02:33 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick