10-20-2014
Quote:
Originally Posted by
MadeInGermany
The hosts: entry in /etc/nsswich.conf is the host resolution order.
file corresponds to /etc/hosts, and dns corresponds to /etc/resolv.conf
The commands nslookup and hosts bypass /etc/nsswitch.conf and directly use DNS (/etc/resolv.conf).
The command getent hosts ... uses the default lookup i.e. via /etc/nsswitch.conf.
hi, thanks
so if i want to force the OS not to query dns? Can i remove the nameserver in resolv.conf ? or totally remove /etc/resolv.conf ?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I executed the following command in the korn shell:
$ variable1="qwerty" ls | sort
and the shell executed the 'ls | sort' command.
I would have expected an error message from the shell, but instead of that the shell ran the 'ls | sort' command and didn't realize the variable assignement. ... (1 Reply)
Discussion started by: PhilippeCrokaer
1 Replies
2. UNIX for Dummies Questions & Answers
Hi there,
do someone have detailed information how to interpret the uptime command or rather which values can be called normal?
(i know what the information means, but i have no idea if these values are ok or to high:
3:02pm an 13:53, 2 Benutzer, Durchschnittslast: 10,06, 12,05, 13,00)
... (5 Replies)
Discussion started by: odin1999
5 Replies
3. UNIX for Advanced & Expert Users
I have used SAR -b to get some Unix cache / buffer metrics and the results are confusing me a bit.
The pread/s & pwrit/s are showing 0. However the lread/s and lwrit/s are showing figures. I note also that the bread/s and bwrit/s are showing figures. I believe that pread/s and pwrit/s is not... (3 Replies)
Discussion started by: jimthompson
3 Replies
4. AIX
hello
with a sar i have this result:
System configuration: lcpu=48 ent=4.00
14:06:37 %usr %sys %wio %idle physc %entc
14:06:39 26 9 3 62 1.63 40.7
14:06:41 26 9 3 63 1.58 39.4
14:06:43 ... (0 Replies)
Discussion started by: pascalbout
0 Replies
5. Shell Programming and Scripting
Hi,
I develop simple animation ping script on Solaris Platform. It is like Cisco ping.
Examples and source code are below.
bash-3.00$ gokcell 152.155.180.8 30
Sending 30 Ping Packets to 152.155.180.8
!!!!!!!!!!!!!.!!!!!!!!!!!!!!!.
% 93.33 success... % 6.66 packet loss...... (1 Reply)
Discussion started by: gokcell
1 Replies
6. Shell Programming and Scripting
I'm writing a Korn script but am having trouble because the shell interprets the asterisk in this case. Can anyone tell me if there is a way to fix this so that grep takes in STDIN without the interpretation?
line="30 09 * * 1-4 /home/user01/bin/start"
echo "$line" | grep 'start' (16 Replies)
Discussion started by: sprucio
16 Replies
7. Shell Programming and Scripting
Hi
I am using perl to ping a list of nodes - with script below :
$p = Net::Ping->new("icmp");
if ($p->ping($host,1)){
print "$host is alive.\n";
}
else {
print "$host is unreacheable.\n";
}
$p->close();... (4 Replies)
Discussion started by: tavanagh
4 Replies
8. UNIX for Beginners Questions & Answers
what does the below do.
echo * | xargs ls | wc –l
echo * - Output a string comprising the name of each file in the working directory, with each name separated by a space.
xargs ls - construct argument list command
wc -l - it will pipe the output to the wc command, which will... (4 Replies)
Discussion started by: houmingc
4 Replies
9. Programming
help with bash script!
im am working on this script to make sure my server will stay online, so i made this script..
HOSTS="192.168.138.155"
COUNT=4
pingtest(){
for myhost in "$@"
do
ping -c "$COUNT" "$myhost" &&return 1
done
return 0
}
if pingtest $HOSTS
#100% failed... (4 Replies)
Discussion started by: mort3924
4 Replies
LEARN ABOUT DEBIAN
ocf_pacemaker_ping
OCF_PACEMAKER_PING(7) Pacemaker Configuration OCF_PACEMAKER_PING(7)
NAME
ocf_pacemaker_ping - node connectivity
SYNOPSIS
[OCF_RESKEY_pidfile=string] [OCF_RESKEY_dampen=integer] [OCF_RESKEY_name=string] [OCF_RESKEY_multiplier=integer]
[OCF_RESKEY_host_list=string] [OCF_RESKEY_attempts=integer] [OCF_RESKEY_timeout=integer] [OCF_RESKEY_options=string]
[OCF_RESKEY_debug=string]
ping [start | stop | reload | monitor | meta-data | validate-all]
DESCRIPTION
Every time the monitor action is run, this resource agent records (in the CIB) the current number of ping nodes the host can connect to. It
is essentially the same as pingd except that it uses the system ping tool to obtain the results.
SUPPORTED PARAMETERS
OCF_RESKEY_pidfile = string [/ping-]
PID file
OCF_RESKEY_dampen = integer [5s]
Dampening interval
The time to wait (dampening) further changes occur
OCF_RESKEY_name = string [pingd]
Attribute name
The name of the attributes to set. This is the name to be used in the constraints.
OCF_RESKEY_multiplier = integer []
Value multiplier
The number by which to multiply the number of connected ping nodes by
OCF_RESKEY_host_list = string []
Host list
The list of ping nodes to count.
OCF_RESKEY_attempts = integer [2]
no. of ping attempts
Number of ping attempts, per host, before declaring it dead
OCF_RESKEY_timeout = integer [2]
ping timeout in seconds
How long, in seconds, to wait before declaring a ping lost
OCF_RESKEY_options = string []
Extra Options
A catch all for any other options that need to be passed to ping.
OCF_RESKEY_debug = string [false]
Verbose logging
Enables to use default attrd_updater verbose logging on every call.
AUTHOR
Andrew Beekhof <andrew@beekhof.net>
Author.
Pacemaker Configuration 04/17/2012 OCF_PACEMAKER_PING(7)