Couldn't ping Oracle Solaris 11 via hostname - solaris

I have various linux systems running under one dhcp server and two dns servers.
Someone told that you never register your hostname to dhcp server , you get ip from dhcp server and then register hostname to dns server (correct me if this is wrong) .
I generally install vmwaretools on the linux machines and configure the /etc/hosts file for hostname and /etc/resolv.conf for domain and dns servers .
The problem is with Oracle Solaris 11 Express 64 bit , even though the hostname is properly being displayed using hostname and /etc/hosts and /etc/resolv.conf file is correct , i'm unable to ping it via hostname (although pinging via ip address works fine) .
The same settings were done on rhel , suse , centos , oracle linux and they are pingable using hostname , what could be the problem ? (both these files for these os's are same) .
It seems like the dns server is unable to pick hostname for oracle solaris but for others it does , since i dont have access to dhcp/dns server , what changes do i require on solaris for it to work ?

Related

The Python http server not working in local network

I´ve tried to start the python server with the following command python -m http.server and it says serving... so it should be working. I have this in a VM Linux maschine and the network adapter is set to bridged. When I access the localhost on port 8000 on the linux maschine the server is running on I can get access to the site and all the folders which the server serves but the problem is that I can´t access the site on any other VM nor the host maschine via the IP adress 192.168.2.206:8000 . The site is simply not loading. Can someone tell me whats wrong? I´ve also checked the firewall settings and allowed it for chrome. But this is not working as well.

How to implement proxy mode in Postgresql server

Postgresql 9.1 server is running in Debian 6 Linux under VPS and accessed by IPV4 address from clients.
I want to move it to other VPS server with never Debian and PostgresSQL 11.
How to implement this so that clients can use same IP address ?
Is it possible to force Postgres to redirect requests to other IP ?
Debian has redir demon ( https://manpages.debian.org/testing/redir/redir.1.en.html )
Is it best way to use it to redirect requests to 5432 port to other server ?
Yiu have several options:
If you control the DNS server, map the name to the new IP address.
Install pgBouncer on the old machine - in session pooling mode, it will work as a proxy.
Start an SSH tunnel on the old machine that redirects the requests to the new machine.

How can I connect to local database on a windows machine from a tomcat server on Ubuntu in a virtual machine

I am trying to set up a server in a virtual machine using the Oracle VirtualBox. I use Ubuntu 18.04 LTS in the VirtualBox. I use PostgreSQL as my database.
In my Tomcat, I have a property file where I provide the database URL and password. I want the tomcat that is set up in the VirtualBox to be able to access a local database that is set up using PGAdmin in my Windows machine in which the VirtualBox is installed.
Is it possible to do that?
When connecting to a SQL server DB running on my host machine from a VM, I use the IP address to connect.
You can run ipconfig (or your OS's equivalent) to find the IP address of the machine serving the DB, then try to connect from your host machine via that IP address instead of the machine name.
There might be some VM-specific settings you need to tweak to allow network access between the VM and host, refer to this post for more info. Usually I have to set my VirtualBox network mode to bridged adapter.

how to access odoo remotely on network?

I have install Odoo on windows server 2008 with fixed ip and this machine connect with Ethernet in network.And my ip address is 192.168.1.200.
So how to access Odoo remotely in network.
By default odoo runs on port 8069. So try 192.168.1.200:8069.
Or if you have defined any other port in your conf file, then change 8069 to that port.
Also you can check log file(if you have specified), It will show like running on 0.0.0.0:port_number.

Can't create sockets to domain

I'm running ubuntu 10.04 lts on my server.
I ran into a problem where my server.jar file couldn't create an SSL socket to prod.euw1.lol.riotgames.com.
I tried "telnet prod.euw1.lol.riotgames.com 2099", but it can't establish a connection.
However, "telnet prod.euw1.lol.riotgames.com 2099" runs fine on a different ubuntu 12.xx server that I ssh'd into, and it works fine on my personal computer.
And strangely, connections to other host servers with "telnet prod.na1.lol.riotgames.com 2099" or "telnet prod.eun1.lol.riotgames.com 2099" on my ubuntu 10.04 machine work just fine.
I don't know what steps to take next, I've already flushed my iptables rules to accept all incoming/outgoing traffic, and the IP address that the domain resolves to is the same across all of the computers I've tried.