31
Kloxo-MR Technical Helps / curl Couldn't resolve host
« on: 2017-05-13, 08:47:54 »
i have this mesagge using curl with php but on terminal it works fine
how do i resolve it?
how do i resolve it?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
64 bytes from iad23s58-in-f14.1e100.net (172.217.7.238): icmp_seq=19 ttl=53 time=85.1 ms
what that meansfunction puto(){
$url = 'https://api.cloudflare.com/client/v4/zones/fffcc847cd955d4d7e8afac10ee59b84/dns_records/638bd4ca58aea88a232b0658ada71da3';
$dato = array('type' => 'A','name' => 'remote.dattasolutions.com.mx','content' => get_ip());
$request = json_encode($dato);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($ch, CURLOPT_POSTFIELDS,$request);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','X-Auth-Email: xxxx@gmail.com','X-Auth-Key: 7ffffgghhgga77e428df2d834ea3f1147e346572ad'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
$response = curl_exec($ch);
if (curl_errno($ch))
{
print curl_error($ch);
exit();
}else{
echo 'yes';
echo '<br>';
curl_close($ch);
echo $response;
}
}
[root@sv1 ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search dattasolutions.com.mx
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
[root@sv1 ~]# traceroute google.com
-bash: traceroute: command not found
[root@sv1 ~]#
[root@sv1 ~]# wget google.com
--2017-05-13 01:54:05-- http://google.com/
Resolving google.com... failed: Temporary failure in name resolution.
wget: unable to resolve host address `google.com'
A. Control Panel:
- Kloxo-MR: 7.0.0.c-2017042302
- Web: hiawatha-10.5.0-f.2.mr.el6.x86_64
- PHP: php54s-5.4.45-1.ius.centos6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.9 (Final) x86_64
- Hostname: sv1.dattasolutions.com.mx
C. Services:
1. MySQL: MariaDB-server-10.0.30-1.el6.x86_64
2. PHP:
- Installed:
- Branch: php54-cli-5.4.45-1.ius.centos6.x86_64
- Multiple:
* php53m-5.3.29-1.ius.centos6
* php54m-5.4.45-1.ius.centos6
* php55m-5.5.38-1.ius.centos6
- Used: --PHP Branch--
- Multiple: enable
3. Web Used: apache
- Hiawatha: hiawatha-10.5.0-f.2.mr.el6.x86_64
- Lighttpd: lighttpd-1.4.45-1.el6.x86_64
- Nginx: nginx-1.12.0-1.el6.ngx.x86_64
- Apache: httpd-2.2.31-1.mr.el6.x86_64
- PHP Type: php-fpm_worker
- Secondary PHP: on
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: bind
- Bind: bind-9.9.9-1.mr.el6.x86_64
- DJBDns: djbdns-1.05-17.4.mr.el6.x86_64
- NSD: nsd-4.1.14-1.el6.x86_64
- PowerDNS: pdns-4.0.3-1.el6.MIND.x86_64
- Yadifa: yadifa-2.2.3-1.mr.el6.x86_64
6. Mail: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
- pop3/imap4: none
- smtp: none
- spam: bogofilter-1.2.4-1.el6.x86_64
7. FTP: pure-ftpd
- pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.x86_64
8. Stats: awstats
- awstats: kloxomr-stats-awstats-7.5-1.mr.noarch
D. Memory:
total used free shared buffers cached
Mem: 6144 532 5611 4 0 237
-/+ buffers/cache: 295 5848
Swap: 6144 0 6144
E. Disk Space:
Filesystem Size Used Avail Use% Mounted on
/dev/ploop29144p1 148G 11G 130G 8% /
*** Process Time: 00:00:00:47.47104 (dd:hh:mm:ss:xxxxxx) ***
* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
(importance after Kloxo-MR update)
yum clean all; yum update -y
sh /script/cleanup
A. Control Panel:
- Kloxo-MR: 7.0.0.c-2017042302
- Web: hiawatha-10.5.0-f.2.mr.el6.x86_64
- PHP: php54s-5.4.45-1.ius.centos6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.9 (Final) x86_64
- Hostname: sv1.dattasolutions.com.mx
C. Services:
1. MySQL: MariaDB-server-10.0.30-1.el6.x86_64
2. PHP:
- Installed:
- Branch: php54-cli-5.4.45-1.ius.centos6.x86_64
- Multiple:
* php53m-5.3.29-1.ius.centos6
* php54m-5.4.45-1.ius.centos6
* php55m-5.5.38-1.ius.centos6
- Used: php55m-fpm
- Multiple: enable
3. Web Used: apache
- Hiawatha: hiawatha-10.5.0-f.2.mr.el6.x86_64
- Lighttpd: lighttpd-1.4.45-1.el6.x86_64
- Nginx: nginx-1.12.0-1.el6.ngx.x86_64
- Apache: httpd-2.2.31-1.mr.el6.x86_64
- PHP Type: php-fpm_event
- Secondary PHP: off
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: bind
- Bind: bind-9.9.9-1.mr.el6.x86_64
- DJBDns: --uninstalled--
- NSD: --uninstalled--
- PowerDNS: --uninstalled--
- Yadifa: --uninstalled--
6. Mail: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
- pop3/imap4: none
- smtp: none
- spam: bogofilter-1.2.4-1.el6.x86_64
7. FTP: pure-ftpd
- pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.x86_64
8. Stats: awstats
- awstats: kloxomr-stats-awstats-7.5-1.mr.noarch
D. Memory:
total used free shared buffers cached
Mem: 6144 438 5705 3 0 164
-/+ buffers/cache: 274 5869
Swap: 6144 0 6144
E. Disk Space:
Filesystem Size Used Avail Use% Mounted on
/dev/ploop18912p1 148G 9.3G 131G 7% /
*** Process Time: 00:00:00:16.16157 (dd:hh:mm:ss:xxxxxx) ***
* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
(importance after Kloxo-MR update)
..::
Monetize Your Website with ylliXmedia ::..
..:: Online Advertising that Sale Anything with ylliXmedia ::.. |
Page created in 0.061 seconds with 17 queries.