Thread: Constant connect to dns server to ask who localhost is
please help, driving me crazy , annoying firewall admin slowing down network
reason ubuntu server (running 10.04) forever trying ask dns server localhost is. have tried changing internal company dns server , outside 1 (opendns) makes no difference. have tried replacing localhost in hosts file server name makes no difference. happened once before , found page on google mentioned because nothing specified in apache httpd.conf file it, added servername in there , seemed cure while reason problem has come
running latest knowledgetree-ce, webmin , postfix server.
interfaces file:
my resolv.conf:code:# file describes network interfaces available on system # , how activate them. more information, see interfaces(5). # loopback network interface auto lo iface lo inet loopback # primary network interface auto bond0 iface bond0 inet static address 192.168.168.50 netmask 255.255.255.0 gateway 192.168.168.254 bond-slaves eth0 eth5 auto eth1 iface eth1 inet static address 192.168.200.50 netmask 255.255.255.0 # gateway 192.168.200.254 # lacp confuration
my hosts file:code:nameserver 208.67.222.222 nameserver 8.8.8.8
my apache.conf:code:127.0.0.1 localhost 127.0.1.1 knowledgetree # following lines desirable ipv6 capable hosts ::1 localhost ip6-localhost ip6-loopback #fe00::0 ip6-localnet #ff00::0 ip6-mcastprefix #ff02::1 ip6-allnodes #ff02::2 ip6-allrouters
my httpd.conf:code:# # based upon ncsa server configuration files rob mccool. # # main apache server configuration file. contains # configuration directives give server instructions. # see http://httpd.apache.org/docs/2.2/ detailed information # directives. # # not read instructions in here without understanding # do. they're here hints or reminders. if unsure # consult online docs. have been warned. # # configuration directives grouped 3 basic sections: # 1. directives control operation of apache server process # whole (the 'global environment'). # 2. directives define parameters of 'main' or 'default' server, # responds requests aren't handled virtual host. # these directives provide default values settings # of virtual hosts. # 3. settings virtual hosts, allow web requests sent # different ip addresses or hostnames , have them handled # same apache server process. # # configuration , logfile names: if filenames specify many # of server's control files begin "/" (or "drive:/" win32), # server use explicit path. if filenames *not* begin # "/", value of serverroot prepended -- "/var/log/apache2/foo.log" # serverroot set "" interpreted # server "//var/log/apache2/foo.log". # ### section 1: global environment # # directives in section affect overall operation of apache, # such number of concurrent requests can handle or # can find configuration files. # # # serverroot: top of directory tree under server's # configuration, error, , log files kept. # # note! if intend place on nfs (or otherwise network) # mounted filesystem please read lockfile documentation (available # @ <url:http://httpd.apache.org/docs-2.1/mod/mpm_common.html#lockfile>); # save lot of trouble. # # not add slash @ end of directory path. # serverroot "/etc/apache2" # # accept serialization lock file must stored on local disk. # #<ifmodule !mpm_winnt.c> #<ifmodule !mpm_netware.c> lockfile /var/lock/apache2/accept.lock #</ifmodule> #</ifmodule> # # pidfile: file in server should record process # identification number when starts. # needs set in /etc/apache2/envvars # pidfile ${apache_pid_file} # # timeout: number of seconds before receives , sends time out. # timeout 300 # # keepalive: whether or not allow persistent connections (more # 1 request per connection). set "off" deactivate. # keepalive on # # maxkeepaliverequests: maximum number of requests allow # during persistent connection. set 0 allow unlimited amount. # recommend leave number high, maximum performance. # maxkeepaliverequests 100 # # keepalivetimeout: number of seconds wait next request # same client on same connection. # keepalivetimeout 15 ## ## server-pool size regulation (mpm specific) ## # prefork mpm # startservers: number of server processes start # minspareservers: minimum number of server processes kept spare # maxspareservers: maximum number of server processes kept spare # maxclients: maximum number of server processes allowed start # maxrequestsperchild: maximum number of requests server process serves <ifmodule mpm_prefork_module> startservers 5 minspareservers 5 maxspareservers 10 maxclients 150 maxrequestsperchild 0 </ifmodule> # worker mpm # startservers: initial number of server processes start # maxclients: maximum number of simultaneous client connections # minsparethreads: minimum number of worker threads kept spare # maxsparethreads: maximum number of worker threads kept spare # threadsperchild: constant number of worker threads in each server process # maxrequestsperchild: maximum number of requests server process serves <ifmodule mpm_worker_module> startservers 2 minsparethreads 25 maxsparethreads 75 threadlimit 64 threadsperchild 25 maxclients 150 maxrequestsperchild 0 </ifmodule> # event mpm # startservers: initial number of server processes start # maxclients: maximum number of simultaneous client connections # minsparethreads: minimum number of worker threads kept spare # maxsparethreads: maximum number of worker threads kept spare # threadsperchild: constant number of worker threads in each server process # maxrequestsperchild: maximum number of requests server process serves <ifmodule mpm_event_module> startservers 2 maxclients 150 minsparethreads 25 maxsparethreads 75 threadlimit 64 threadsperchild 25 maxrequestsperchild 0 </ifmodule> # these need set in /etc/apache2/envvars user ${apache_run_user} group ${apache_run_group} # # accessfilename: name of file in each directory # additional configuration directives. see allowoverride # directive. # accessfilename .htaccess # # following lines prevent .htaccess , .htpasswd files being # viewed web clients. # <files ~ "^\.ht"> order allow,deny deny satisfy </files> # # defaulttype default mime type server use document # if cannot otherwise determine one, such filename extensions. # if server contains text or html documents, "text/plain" # value. if of content binary, such applications # or images, may want use "application/octet-stream" instead # keep browsers trying display binary files though # text. # defaulttype text/plain # # hostnamelookups: log names of clients or ip addresses # e.g., www.apache.org (on) or 204.62.129.132 (off). # default off because it'd overall better net if people # had knowingly turn feature on, since enabling means # each client request result in @ least 1 lookup request # nameserver. # hostnamelookups off # errorlog: location of error log file. # if not specify errorlog directive within <virtualhost> # container, error messages relating virtual host # logged here. if *do* define error logfile <virtualhost> # container, host's errors logged there , not here. # errorlog /var/log/apache2/error.log # # loglevel: control number of messages logged error_log. # possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # loglevel warn # include module configuration: include /etc/apache2/mods-enabled/*.load include /etc/apache2/mods-enabled/*.conf # include user configurations: include /etc/apache2/httpd.conf # include ports listing include /etc/apache2/ports.conf # # following directives define format nicknames use # customlog directive (see below). # if behind reverse proxy, might want change %h %{x-forwarded-for}i # logformat "%v:%p %h %l %u %t \"%r\" %>s %o \"%{referer}i\" \"%{user-agent}i\"" vhost_combined logformat "%h %l %u %t \"%r\" %>s %o \"%{referer}i\" \"%{user-agent}i\"" combined logformat "%h %l %u %t \"%r\" %>s %o" common logformat "%{referer}i -> %u" referer logformat "%{user-agent}i" agent # # define access log virtualhosts don't define own logfile customlog /var/log/apache2/other_vhosts_access.log vhost_combined # include of directories ignores editors' , dpkg's backup files, # see readme.debian details. # include generic snippets of statements include /etc/apache2/conf.d/ # include virtual host configurations: include /etc/apache2/sites-enabled/ include /etc/phpmyadmin/apache.conf
also fyi, in company dns server dns name 'knowledgetree' has been registered ip (192.168.168.50)code:servername knowledgetree
please, please, please
stuuuupid question.
running openoffice on machine?
also, stop annoying admin temporarily
maybe add en entry in hosts
localhost.(none) point 127.0.0.1
cant imagine harm adding entry
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Constant connect to dns server to ask who localhost is
Ubuntu
Comments
Post a Comment