سؤال

لقد قمت بنقل تثبيت WHM/cPanel الخاص بي إلى خادم جديد.بعد تغيير عنوان IP لخادم الأسماء، وبعد فترة قصيرة بدأت النطاقات في الإشارة إلى الخادم الجديد.

ومع ذلك، فإن اسم المضيف لا يتحول إلى عنوان IP.

/scripts/ipcheck --verbose


IMPORTANT: Do not ignore this email.

Your hostname (xxx.example.com) could not be resolved to an
IP address. This means that /etc/hosts is not set up correctly,
and/or there is no dns entry for xxx.example.com. Please be
sure that the contents of /etc/hosts are configured correctly, and
also that there is a correct 'A' entry for the domain in the zone
file.

Some or all of these problems can be caused by /etc/resolv.conf
being setup incorrectly. Please check that file if you believe
everything else is correct.

You may be able to automatically correct this problem by using the
'Add an A entry for your hostname' option under 'Dns Functions' in
your Web Host Manager.

ركضت:

nano /etc/hosts


# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
XXX.XXX.XXX.XXX         xxx.example.com xxx

وأتحقق أيضًا من:

nano /etc/resolv.conf

nameserver 8.8.8.8
nameserver 8.8.4.4

أيضًا:

nano /etc/nameserverips

XXX.XXX.XXX.XXX=ns1.example.com
XXX.XXX.XXX.XXX=ns2.example.com

لقد تحققت من "إضافة إدخال لاسم المضيف الخاص بك" في WHM:

Hostname | Server Main IP
xxx.example.com | XXX.XXX.XXX.XXX

لقد قمت بفحص وإعادة بناء dnsconfig

/scripts/rebuildingdnsconfig

لست متأكدًا حقًا مما يجب التحقق منه، لقد قمت بإعادة تشغيل الخادم.المجالات التي تشير إلى خوادم الأسماء تعمل بشكل جيد.المشكلة التي أواجهها هي أنني أقوم بتوجيه جميع عمليات الوصول إلى لوحة التحكم وتكوينات SSL لرسائل البريد الإلكتروني من خلالها https://xxx.example.com لأن هذا لديه شهادة SSL.لقد قمت بمقارنة الإعدادات بالخادم الأقدم وهي نفسها باستثناء عنوان IP.

Centos 6.4 WHM 11.40.0 Build 19

  • XXX.XXX.XXX = عناوين IP للخادم
  • xxx.example.com = اسم المضيف

سيكون موضع تقدير أي مساعدة.

هل كانت مفيدة؟

المحلول

حل هذا:

انتقل إلى WHM، "أضف إدخال اسم مضيفك" وترسل مرة أخرى.

على الرغم من أنها كانت صحيحة تقديمها مرة أخرى.جاء هذا الإصلاح من دعم CPanel.

نصائح أخرى

أعلم أنه منشور قديم، ولكن فيما يلي بعض نقاط التحقق بالإضافة إلى ما ورد أعلاه إذا كان شخص ما قد يحتاج إلى مساعدة في المستقبل بشأن مشكلة مماثلة:

1> التحقق من المحتوى

/etc/wwwacct.conf

2> تحقق من اسم المضيف الخاص بك وNS للحصول على النتائج المناسبة

dig ns1.example.com
dig hostname.exmple.com
host ns1.example.com
host (HOST IP)
nslookup hostname.exmple.com

3) تأكد من تسجيل hostname.example.com وns1.example.com في مسجل النطاق الخاص بك وأنهما يشيران إلى عنوان IP الصحيح.

4) تأكد من عدم وجود جدار حماية يمنع المنفذ UDP:53 وغيرها من الموانئ الأساسية.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top