nixCraft Linux Forum

nixCraft

Linux 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 ...


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

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-15-2007, 10:14 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 545
rockdalinux is on a distinguished road
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.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
Reply

Bookmarks

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 On


Similar Threads

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


All times are GMT +5.5. The time now is 04:51 PM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

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