Posted On August 31, 2021

Ping Command’s First Packet Toward LDAP Server(s) Takes 2 Seconds to Start

kimconnect 0 comments
blog.KimConnect.com >> Linux , Networking >> Ping Command’s First Packet Toward LDAP Server(s) Takes 2 Seconds to Start
Case 1: Are DNS servers working?
  • dig returns results right away => defined dns servers are working
  • dig returns results with a 2+ seconds delay or timeout => defined dns servers are NOT working

Recommendations:

  1. Test configuring client to use a different DNS server
    dig @dnsServer1.kimconnect.com ldapServerName
  2. Verify that routing and firewall rules are passing traffic from client to DNS servers
  3. Cleanup invalid DNS records in AD
Case 2: Is localhost able to cache hardware address?
  • apr -a command returns results right away, and the ldap server IP mac address is present => ARP is working fine
  • apr -a command takes awhile to populate => indication that localhost arp table is having issues, so it’s not caching mac to ip for fast lookups

Recommendations:

a. Add a static arp entry into localhost

Command:

arp -s ip-address-of-ldap-server hardware-address-of-ldap-server
# Example:
sudo arp -s 10.10.10.10 aa:11:bb:22:cc:44

# How to reverse the change:
sudo arp --delete 10.10.10.10

# How to check the ARP Table:
sudo arp -avn # more verbose
sudo arp -n # simple view

b. Clear ARP cash & DNS cache

ip -s -s neigh flush all
arp -n
service nscd restart

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Sonicwall Site to Site VPN Setup

Create VPN Tunnel:Log into Rancho Sonicwall >> VPN >> Settings >> AddPolicy Type: Tunnel InterfaceAuthentication:…

Linux: How to Manually Create a USB Bootable Drive for ESXi

Step 1: Find the USB mount root@kimlinux:/home/kim# ls /dev/s*/dev/sda /dev/sdb1 /dev/sdb3 /dev/sdc1 /dev/sg1 /dev/snapshot /dev/stdin/dev/sdb…

Unix / Linux File Permissions Cheat Sheet

General Permissions Overview: Permissions (base) 1 – execute2 – write4 – read Permissions (octal) 3…