--- /dev/null
+--TEST--
+Test gethostbyaddr() function : basic functionality
+--FILE--
+<?php
+/* Prototype : string gethostbyaddr ( string $ip_address )
+ * Description: Get the Internet host name corresponding to a given IP address
+ * Source code: ext/standard/dns.c
+*/
+
+echo "*** Testing gethostbyaddr() : basic functionality ***\n";
+echo gethostbyaddr("127.0.0.1")."\n";
+
+?>
+===DONE===
+--EXPECTF--
+*** Testing gethostbyaddr() : basic functionality ***
+%rloopback|localhost(\.localdomain)?%r
+===DONE===
\ No newline at end of file
--- /dev/null
+--TEST--\r
+Test gethostbyname() function : basic functionality \r
+--FILE--\r
+<?php\r
+/* Prototype : string gethostbyname ( string $hostname )\r
+ * Description: Get the IPv4 address corresponding to a given Internet host name \r
+ * Source code: ext/standard/dns.c\r
+*/\r
+\r
+echo "*** Testing gethostbyname() : basic functionality ***\n";\r
+\r
+echo gethostbyname("localhost")."\n";\r
+?>\r
+===DONE===\r
+--EXPECT--\r
+*** Testing gethostbyname() : basic functionality ***\r
+127.0.0.1\r
+===DONE===
\ No newline at end of file
--- /dev/null
+--TEST--\r
+Test gethostbynamel() function : basic functionality \r
+--FILE--\r
+<?php\r
+/* Prototype : array gethostbynamel ( string $hostname )\r
+ * Description: Get a list of IPv4 addresses corresponding to a given Internet host name \r
+ * Source code: ext/standard/dns.c\r
+*/\r
+\r
+echo "*** Testing gethostbynamel() : basic functionality ***\n";\r
+var_dump(gethostbynamel("localhost"));\r
+?>\r
+===DONE===\r
+--EXPECTF--\r
+*** Testing gethostbynamel() : basic functionality ***\r
+array(%d) {\r
+ %a\r
+}\r
+===DONE===
\ No newline at end of file