nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

OpenBSD configure change DNS name server IP address - DNS Client Resolution

This is a discussion on OpenBSD configure change DNS name server IP address - DNS Client Resolution within the Getting started tutorials forums, part of the Linux Getting Started category; Like any other UNIX like oses OpenBSD uses /etc/resolv.conf file. You just need to add or change NS1 and NS2 ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Linux answers from nixCraft.


Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-15-2007, 11:14 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 691
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default OpenBSD configure change DNS name server IP address - DNS Client Resolution

Like any other UNIX like oses OpenBSD uses /etc/resolv.conf file. You just need to add or change NS1 and NS2 here.

Command to display OpenBSD nameserver
Code:
cat /etc/resolv.conf
Here is output:
Code:
search staff.vsnl.in
nameserver 10.0.80.11
nameserver 10.0.80.12
In this case, the default search domain name will be staff.vsnl.in, there are two DNS resolvers, NS1 is 10.0.80.11 and NS2 is 10.0.80.12 specified, and the /etc/hosts file will be consulted before the DNS resolvers are

Command to edit or set new name server
Code:
vi /etc/resolv.conf
Add new name server and close the file. Remember you can set only 3 name servers. To test new nameserver use nslookup
Code:
nslookup google.com
host vsnl.in
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
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 On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to install and configure NFS on Server and Client Santosh Sharma Getting started tutorials 1 04-04-2008 01:12 PM
Linux Configure Name Resolution raj Networking, Firewalls and Security 1 03-28-2008 10:19 AM
OpenBSD get or display network card IP address Subnet mask information rockdalinux Getting started tutorials 0 06-15-2007 11:06 PM
Howto change ip address in Linux chiku Networking, Firewalls and Security 1 04-29-2007 05:51 PM
Linux how do I change IP address with ifconfig command chiku Linux software 1 12-07-2006 09:47 PM


All times are GMT +5.5. The time now is 06:03 AM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38