06-22-2017
Just for the record. there is an easier way to do this.
http://www.timwort.org/sol11tips/Con...DNS_Client.pdf
the short story is that /etc/resolv.conf and nsswitch.conf are placeholders and will get overwritten by the svccfg on reboot. if you used the procedure outlined in the link above it will import the contents of those files into the svccfg and make it persistent across a reboot.
10 More Discussions You Might Find Interesting
1. IP Networking
I am new to unix. I have edited the /etc/resolv.conf. It shows
domain name
ip address
ip address
These are the same ips of the dns I use for windows. Still I get no name resolution on the internet. I can ping external ip's is there anything else I need to check? (1 Reply)
Discussion started by: rpnhavoc
1 Replies
2. Solaris
Hi all
Is there any reason to have "hosts ldap dns" as line in /etc/nsswitch.conf ? My understanding is that ldap does not contain any host information..(?)
Best regards...Ludwig (1 Reply)
Discussion started by: ludwig
1 Replies
3. SuSE
I want to have 7 search domains in my resolv.conf, but it seems to like only the first six.
I read somewhere that the OS will only recognize the first 6 (or the first 154 characters). Is that the case with SUSE 10?
thx
-Kevin (2 Replies)
Discussion started by: kjbaumann
2 Replies
4. Solaris
Dear Friend,
It is strange that my sendmail does not accord to the hosts order in solaris nsswitch.conf. Please let me elaborate in details. Thank you.
Setting:
solaris 9 /etc/nsswitch.conf
hosts: file ldap dns
sendmail 8.13.4 /etc/mail/sendmail.cf
O... (4 Replies)
Discussion started by: jackyyjwu
4 Replies
5. 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
6. 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
7. Red Hat
Hi,
I was told to add the "nis" in front of "files" for below lines in /etc/nsswitch.conf was not in a good practise. I tried to search in google and man page for nsswitch.conf and can't find the answer. could someone please help me?
passwd: nis files
shadow: nis files
group: nis files... (2 Replies)
Discussion started by: beeloo
2 Replies
8. 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
9. Red Hat
Hi all, :(
I am facing issue while I have updated in resolv.conf, after nework service restart, it was automatically deleted IP from resolv.conf file.
Could you please let me know what is the reason resolv.conf deleted any IP which I have manually updated, but it store only my router IP... (3 Replies)
Discussion started by: Pradipta Kumar
3 Replies
10. HP-UX
Hi all,
There wasn't nsswitch.conf file in my HPUX server. So I copied /etc/nsswitch.files to /etc/nsswitch.conf and changed the content like below.
passwd: compat
group: compat
hosts: files dns nis
ipnodes: dns files
services: nis files
networks: nis... (2 Replies)
Discussion started by: sembii
2 Replies
LEARN ABOUT DEBIAN
bootcd2disk
BOOTCD2DISK(1) bootcd utils BOOTCD2DISK(1)
NAME
bootcd2disk - copy a system running from bootcd to a disk
SYNOPSIS
bootcd2disk [-i] [-s] [-c <config directory>] [-url <url>]
DESCRIPTION
With bootcd2disk a CD build with bootcdwrite can be copied to one or more Disk Partitions from the running cd-based system. Therefore
bootcd could be used to make rescue disks.
It is also possible to let bootcd2disk automatically find a disk, make partitions on it, copy the cd to the disk and make the disk
bootable. bootcd2disk will be available as soon as your system is running from cd.
OPTIONS
-i With this option the complete bootcd2disk runs in interactive mode and you can run each function manually. This option is useful for
debugging.
-v The option "-v" (verbose) adds messages on running.
-s This option can be used to disable interactive questions and to try to ignore errors.
-c <config directory>
The configuration directory which normally is "/etc/bootcd" can be changed with this.
-url <url>
If bootcd2disk is slow on your system (because of a slow CD/DVD drive or the HP ILO virtual CD interface), you can use an image server
to get the image from. bootcd2disk use the SWAP partition of your upcoming system as temporary space and copy the image from the con-
figured image server to this partition and use it as image. The image server url is configured with this option.
example install from imagesserver:
bootcd2disk -url http://192.168.1.1/cdimage.iso
Another way the increase the performance is the use of the mounted CD/DVD itself for the copy. The option "-url" is the same, the url
starts with "file:///"
example install from CD/DVD drive sdc0:
bootcd2disk -url file:///dev/sdc0
The swap partition of the upcoming system must have enough space to get the whole image!
Currently no other options can be specified on command line. All other configuration has to be done in the config files.
FILES
/etc/bootcd/bootcd2disk.conf
Configuration for bootcd2disk.
SEE ALSO
Documentation in bootcd2disk.conf
bootcd2disk.conf(5), bootcd(1), bootcdflopcp(1), bootcdwrite(1)
AUTHOR
This manual page was written by Bernd Schumacher <bernd.schumacher@hp.com> and Carsten Dinkelmann <Carsten.Dinkelmann@foobar-cpa.de> for
the Debian GNU/Linux system (but may be used by others).
bootcd2disk 2007-04-04 BOOTCD2DISK(1)