04-08-2013
Adding Domain name n resolv.conf file without vi editor
Hi Guys,
I want to add the domain name entry to resolv.conf file. when i use the vi editor to do it the changes are gone after DNS client is being restarted. In Solairs 11 I figured out svccfg command will help to retain the cinfguration. but in linux how do we do that. Also for Solaris are there any additonal steps to be performed like refresh and validate once I change the Domain name. Please help. appreciate your help in advance.
karthik
9 More Discussions You Might Find Interesting
1. IP Networking
Hi,
I have come across a fact that /etc/resolv.conf can be overrided by using ~/.nslookuprc.
Is this completely true...i.e can I completely override /etc/resolv.conf.
If so, can I have a list of my own domainnames & Nameservers in ~/.nslookuprc that can override those in resolv.conf.
... (3 Replies)
Discussion started by: smanu
3 Replies
2. Shell Programming and Scripting
HI ALL
I am making a script,That will does the following,I am in search of ideas
1.Script will comment all existing the entries in resolve.conf
2.Add new entries like this
abc.example.com
192.168.1.x
I can use sed to add comment. (8 Replies)
Discussion started by: aliahsan81
8 Replies
3. UNIX for Dummies Questions & Answers
Hi everyone
A quick question during a audit this was determined to be a security issue
In the resolv.conf there is a “.” At the end of the domain name
Like this
domain mydomain.com.
I which to understand the function or significance of the .
thk (3 Replies)
Discussion started by: Ex-Capsa
3 Replies
4. Ubuntu
Hi,
My resolv.conf keeps overwritten. I want to have it to just keep the setting that I put in there. I tried a few solutions I found using google.
like supersede domain-name "xxx", prepend domain-name-servers xxx.xxx.xxx.xxx;
This does'nt work.
I also tried to just chmod the file to... (4 Replies)
Discussion started by: jld
4 Replies
5. Shell Programming and Scripting
Hello...
I am trying to loop through my hosts file that contains 100+ servers to check or update the nameservers on them...
My while loop is breaking after the first server responds...
#!/bin/bash
while read line; do
a=( $(echo $line | tr " " "\n") )
if }" != "" ] && }" != "#" ] &&... (1 Reply)
Discussion started by: CompSCI
1 Replies
6. UNIX for Advanced & Expert Users
Hello All,
I configured a DNS server added the below entry to /etc/resolv.conf
domain example.com
nameserver 10.11.60.70
my nslookup commands are OK and fast.
but when trying to netstat -r it takes more then 5 seconds.
Please can you help to solve this issue.
Regards, (10 Replies)
Discussion started by: beayni33
10 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Am trying to configure DNS server and trying to keep the information in /etc/resolv.conf file as:
search server
nameserver 192.168.0.10
when i restart the network service with #service network restart, resolv.conf file is changing as:
nameserver 192.168.0.10
search server -... (5 Replies)
Discussion started by: raosr020
5 Replies
8. Linux
After vpn connection,I am not able to resolve any machines in remote gateway.It looks like remote domain is added to domain field instead of adding it to the Search field in /etc/resolv.conf
I want the remote domain to add to search field along with local domain.Can anyone tell a bash or script... (2 Replies)
Discussion started by: jeremy_brett
2 Replies
9. Solaris
Hi,
I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf.
I used below to configure both settings:
# svccfg -s dns/client
svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Discussion started by: flexihopper18
1 Replies
LEARN ABOUT LINUX
nisd_resolv
rpc.nisd_resolv(1M) System Administration Commands rpc.nisd_resolv(1M)
NAME
rpc.nisd_resolv, nisd_resolv - NIS+ service daemon
SYNOPSIS
rpc.nisd_resolv [-v | -V] [ -F [-C fd]] [-t xx] [-p yy]
DESCRIPTION
rpc.nisd_resolv is an auxiliary process which provides DNS forwarding service for NIS hosts requests to both ypserv and rpc.nisd that are
running in the NIS compatibility mode. It is generally started by invoking rpc.nisd(1M) with the -B option or ypserv(1M) with the -d
option. Although it is not recommended, rpc.nisd_resolv can also be started independently with the following options.
This command requires that the /etc/resolv.conf file be setup for communication with a DNS nameserver. The nslookup utility can be used to
verify communication with a DNS nameserver. See resolv.conf(4) and nslookup(1M).
OPTIONS
-F Run in foreground.
-C fd Use fd for service xprt (from nisd).
-v Verbose. Send output to the syslog daemon.
-V Verbose. Send output to stdout.
-t xx Use transport xx.
-p yy Use transient program# yy.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO
nslookup(1M), rpc.nisd(1M), resolv.conf(4), attributes(5)
NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are
available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.10 12 Dec 2001 rpc.nisd_resolv(1M)