Computer Science 360 Quiz 4 Name___________________ 1. Which of the following best characterizes the way the DNS presently works a. every week or so a central server b. every week or so sysadmins downloads a database that maps send an email containing all all names on the Internet to their of their host names and IP IP address to each host on the addresses to a central DNS Internet administrator who updates a global data base referenced by all "root name servers" c. every week or so hosts on the d. The DNS system is a heirarcical Internet upload their own names and distributed database and there IP addresses to a central server does not exist ANY central that provides name service to the repository mapping all names entire internet. to IP address. 2. When a UDP (SOCK_DGRAM, IPPROTO_IP) socket is in use, an attempt to connect() the socket a. will fail unless an application b. will fail even if an application on the remote host has bound to on the remote host is bound to the remote port the remote port UNLESS the process bound to the socket is trying to read from it. c. will succeed ONLY if the remote d. can return success even if the host address in the struct remote IP address is not sockaddr_in specifies the IP address presently assigned to ANY host. of a host on the Internet that is presently powered on. 3. Root nameservers will communicate a. only with authorized nameservers b. only with applications running with root (superuser) privileges c. with any program regardless of whether it is an "official" nameserver or its privilege state 4. Before calling gethostbyname() a. a socket MUST be created b. a socket must NOT be created c. it doesn't matter whether or not a socket has been created. 5. Suppose a makefile contains the following lines: connect: connect.c ${DEPS} gcc -o $@ $@.c ${DEBUG} ${OBJS} 2> $@.err when the user enters "make connect" the value of $@ becomes: a. a.out b. connect.o c. connect: d. connect