Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EOL/EOE] [NSM] The HTTPD service fails to start

0

0

Article ID: KB24155 KB Last Updated: 18 Oct 2020Version: 2.0
Summary:
Note: A product listed in this article has either reached hardware End of Life (EOL) OR software End of Engineering (EOE).  Refer to End of Life Products & Milestones for the EOL, EOE, and End of Support (EOS) dates.
This article describes the issue of the HTTPD service failing to start on the Linux computers, due to problems with domain name resolution.
Symptoms:
The HTTPD service fails to start on the Linux computers due to problems with domain name resolution.
Solution:
In such cases, you should check the /etc/nsswitch.conf file. This file controls how name resolution is performed. Here, the hosts field should have the files dns parameter to resolve the domain name internally.

Edit the nsswitch.conf and vi /etc/nsswitch.conf files and change the hosts line to read:
hosts: files dns

This means programs that want to resolve an address should first use the /etc/hosts file for internal resolution and then look up to the DNS server for external resolution.

After the change, start the HTTPD daemon by executing the following command:
service httpd start

Note :the ' /etc/hosts' file should have an entry which looks like :
[IP-address] [fully-qualified-machine-name] [machine-name]
Where 'fully-qualified-machine-name' is the 'machine_name'/domain_name'. For example:
127.0.0.1 NSMXpress.juniper.net NSMXpress localhost.localdomain localhost

If the issue is still unresolved, contact JTAC.
Modification History:
2020-10-18: Tagged article for EOL/EOE.
 
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search