Why does resolver in RHEL7 send DNS queries with short host name to name server without adding domain in search list?

Solution Verified - Updated -

Issue

  • Why does resolver in RHEL7 send DNS queries with short host names to name server instead of adding DOMAIN name in search list?

    # egrep 'sendto' trace.txt
    3327  12:51:43.836115 sendto(3, "E>\1\0\0\1\0\0\0\0\0\0\3www\3abc\5local\0\0\34\0\1", 31, MSG_NOSIGNAL, NULL, 0) = 31 <0.000083>
    3327  12:51:43.839379 sendto(3, "\340\16\1\0\0\1\0\0\0\0\0\0\3www\2ab\2cd\2ef\5local\0\0\34\0\1", 36, MSG_NOSIGNAL, NULL, 0) = 36 <0.000077>
    3327  12:51:43.852142 sendto(3, "\34\211\1\0\0\1\0\0\0\0\0\0\3www\0\0\34\0\1", 21, MSG_NOSIGNAL, NULL, 0) = 21 <0.000085> <<< See here
    3327  12:51:43.881946 sendto(3, "k\232\1\0\0\1\0\0\0\0\0\0\3www\3abc\5local\0\0\1\0\1", 31, MSG_NOSIGNAL, NULL, 0) = 31 <0.000049>
    3327  12:51:43.884668 sendto(3, "'\n\1\0\0\1\0\0\0\0\0\0\3www\2ab\2cd\2ef\5local\0\0\1\0\1", 36, MSG_NOSIGNAL, NULL, 0) = 36 <0.000051>
    3327  12:51:43.886596 sendto(3, "\252\7\1\0\0\1\0\0\0\0\0\0\3www\0\0\1\0\1", 21, MSG_NOSIGNAL, NULL, 0) = 21 <0.000029> <<< See here
    

Environment

  • Red Hat Enterprise Linux 7
  • glibc

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content