Sponsored Content
Full Discussion: configure dns in centos
Operating Systems Linux Red Hat configure dns in centos Post 302545513 by bitlord on Monday 8th of August 2011 04:26:23 PM
Old 08-08-2011
Hey how are you.
I'm a Solaris admin but I have been doing a lot of RHEL administration lately. No matter what UNIX or Linux distro I have work with, the /etc/resolve.conf file is used to point a server to the DNS server. If you don't want to use a editor like vi, then use this command.

Example your DNS server's IP is 10.0.0.1
Code:
echo nameserver 10.0.0.1 >>  /etc/resolve.conf

This should be what you see;
Code:
cat /etc/resolve.conf 
nameserver 10.0.0.1

You can also use the GUI.
System --> Administration --> Network
you can edit the the interfase in this GUI.

I hope this helps

Last edited by bitlord; 08-08-2011 at 05:33 PM..
This User Gave Thanks to bitlord For This Post:
 

10 More Discussions You Might Find Interesting

1. IP Networking

trying to configure DNS address in Solaris

hi to all. I'm trying to use the sendmail command to generate some reports and I cant use it. The mails i try to send simply won't go out, instead I receive a response from the system sayng that the host is unknown. I think the problem is in the DNS configuration (or the IMAP/SMTP servers). ... (3 Replies)
Discussion started by: ldrojasm
3 Replies

2. UNIX for Advanced & Expert Users

How to configure DNS

My OS is sun solaris7,(sun sparc),i want connect inernet and my computer in my company intranet.After i configure proxy server,i still can't conncet internet.I guess whether the DNS is configured correctly. who can help me???Thank you very much!!! (6 Replies)
Discussion started by: q30
6 Replies

3. Solaris

configure DNS server on solaris

Hello evrybody I need to know how i can implement and configure DNS server in solaris9 and i need to understand which files i modified it to do that Thanks all (8 Replies)
Discussion started by: asafwat
8 Replies

4. IP Networking

Configure DNS

I am running Solaris 2.6 Server on a Sparc 10 and I was wondering how I can manually specify a DNS server to resolve hostnames. Any help will be greatly appreciated. And also I have created a file in the /etc dir named defaultrouter and added th IP address of my router, but when I ping another... (15 Replies)
Discussion started by: jskillet
15 Replies

5. Linux

How to Install and configure Jira And Confulence in Centos 5.5

Please Give me Step by step Instruction Or Video Tutorial For installing and configuring Jira And Confulence in Centos 5.5 , What are the Requirements For Installing and Configuring , wht are the Softwares need for it to work perfectly ... pls reply thanks in advance .... :wall: (1 Reply)
Discussion started by: babinlonston
1 Replies

6. Red Hat

Cannot configure TL-WN727N wireless usb in centos 6.2

hi everybody, iam using 32 bit centos 6.2 on my machine. i have purchase TP-LINK, TL-WN727N wireless usb, but i was not able to install on my desktop. i was not able to find drivers for centos 6.2 official site of TPLINK. $ uname -a Linux workstation 2.6.32-220.el6.i686 #1 SMP Tue Dec 6... (0 Replies)
Discussion started by: paruhang
0 Replies

7. Shell Programming and Scripting

How to configure time zone using POSIX format in Centos 5?

I was in process of developing a new script to configure a time zone. After some study I got the unix utility /usr/bin/tzselect to get the user inputs. Now I am able to configure the time zone depending on the user inputs except for the POSIX format. root >/usr/bin/tzselect Please identify a... (1 Reply)
Discussion started by: kalpeer
1 Replies

8. Homework & Coursework Questions

Configure DNS in rhel6.3

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: cant configure dns in virtual box. im using rhel6.3. i have a cd containing rhel which the professor provided us.... (2 Replies)
Discussion started by: rpmacaspac
2 Replies

9. Red Hat

DNS Server Setup Centos 6.5 Issues

I am having a bit of trouble getting my CENTOS 6.5 DNS server to work correctly in our testlab environment. Lab network is 10.8.0.0/24 in which we all access from 10.7.0.0.0/24 && 10.0.0.0/24. Here are my configs: options { listen-on port 53 { 127.0.0.1; 10.8.0.19;}; #listen-on-v6 port 53 {... (2 Replies)
Discussion started by: metallica1973
2 Replies

10. Red Hat

How can i configure ipv6 on centos?

HI Forum, i was trying to configure ipv6 on my centos box with 2 physical interface bonded as bond0. what all things need to change? Regards, Ben (0 Replies)
Discussion started by: bentech4u
0 Replies
dns(n)								 Tnm Tcl Extension							    dns(n)

__________________________________________________________________________________________________________________________________________________

NAME
dns - Query the Domain Name System of the Internet. _________________________________________________________________ DESCRIPTION
The dns command allows to query the Internet Domain Name System (DNS) (RFC 1034, RFC 1035, RFC 974, RFC 1912) for host information. The main purpose of this command is to convert host names into IP addresses and vice versa. The dns command also allows to retrieve host infor- mation records as well as mail exchanger records. DNS COMMAND
dns [options] Invoking the dns command with options but without any command arguments allows to retrieve and change the default values. See the description of supported options below. Default values are bound to a Tcl interpreter which allows to have multiple Tcl interpreter with different defaults. dns [options] address host The dns address command sends a query to retrieve the address record for the specified host. The command returns the list of IP addresses for the given host name. dns [options] name address The dns name command sends a query to retrieve the domain name pointer record. A pointer record maps an IP address to a fully quali- fied domain name (FQDN). The command returns the fully qualified domain name for the given IP address. dns [options] hinfo name The dns hinfo command sends a query to retrieve the host information record. The command returns a list containing two elements. The first element describes the hardware type and the second element the operating system. dns [options] mx name The dns mx command sends a query to retrieve the mail exchanger record. The command returns a list of mail exchanger records if name is a domain name for which one or more MX records exist. Each element of this list contains a full qualified domain name (FQDN) and its priority. dns [options] soa name The dns soa command sends a query to retrieve the start of authority record for a DNS domain. The command returns the name of the authoritative DNS server of the DNS domain name. DNS OPTIONS
-server server The -server option defines the DNS server which will be used to process the request. The default value is the default DNS server configured on the local system. -timeout time The -timeout option defines the time the dns command will wait for a response. The time is defined in seconds with a default of 2 seconds. -retries number The -retries option defines how many times a request is retransmitted during the timeout interval. The default number of retries is 2. Please note, that many resolver double the last timeout after every retry. SEE ALSO
scotty(1), Tnm(n), Tcl(n) AUTHORS
Erik Schoenfelder <schoenfr@gaertner.de> Juergen Schoenwaelder <schoenw@cs.utwente.nl> Tnm dns(n)
All times are GMT -4. The time now is 03:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy