Linux 2 Chap 15
Which file is referred to on systems where DNS is not set up?
/etc/hosts
Which file is referred to by the Name Service Switch (NSS) resolver?
/etc/nsswitch.conf
Which configuration file is referred to for DNS resolution?
/etc/resolv.conf
The ____ file is read at boot time on Red Hat based systems to set the host name.
/etc/sysconfig/network
Which file contains host and routing details of all configured network interfaces for Red Hat based systems?
/etc/sysconfig/network
Which file will be used to enable DHCP based configuration on Red Hat based systems?
/etc/sysconfig/network-scripts/ifcfg-eth0
The IP address of your host is 192.168.10.16. In order to connect to another host with the IP address of 192.86.74.16, your router will have to be connected to the subnets:
192.168.10.0 and 192.86.74.0
How is the DNS configuration file /etc/resolv.conf setup?
By network initialization scripts
The routing table shows an entry with genmask 0.0.0.0, this indicates the _____.
Default Route
The kernel's routing table contains static and dynamic routes. True or False?
False
The view only options of the ifconfig command need root privileges. True or False?
False
What type of interface is a network interface card?
Hardware interface
The eth0 NIC has been mapped to two IP addresses. This is known as:
IP aliasing
Which of the information listed below is not shown by the ping command?
Route to the destination
Which of the following is not shown in the output of the ifconfig command?
TTL
You ping a host, which is currently not reachable because of some maintenance activity. You now try to add a route via this host since it will be available shortly. What will be the output of route add in this scenario?
The route will be ignored and an error will be shown
The system administrator tries to assign the value host*2014@SNG using the hostname command. What is the result of executing this command?
This value cannot be assigned since special characters other than - and . are not allowed in hostname
The /etc/nsswitch.conf file defines the order in which DNS and the /etc/hosts file are queried for host name information. True or False?
True
The ifdown command can be used to disable all configured network interfaces. True or False?
True
The ifup command can read interface definitions from a file other than the default file. True or False?
True
Which API is used to query address information from the Name Service Switch (NSS) resolver?
getaddrinfo()
The _____ command is used to view the fully qualified domain name of the host.
hostname -f
Which command is used to setup broadcast addresses for a network interface?
ifconfig
Which command is used to find the netmask of eth0 interface?
ifconfig eth0
Which command is used to assign a netmask to eth1?
ifconfig eth1 netmask 255.255.255.224
You want to switch the NIC cards of two servers currently in use. Which command will be used to disable the interfaces for this activity?
ifdown
The ____ command used to disable a network interface is identical to _____.
ifdown eth0, ifconfig eth0 down
Which of the configuration directives given below is not found in the /etc/resolv.conf file?
parameters
Which command can you use to block packets to a specific host?
route add with reject option
Which command is used to delete entries from the routing table?
route del